@kayahr/assert
    Preparing search index...

    Function assertNotNull

    • Asserts that given value is not null.

      Type Parameters

      • T

      Parameters

      • actual: T

        The value to check.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns asserts actual is Exclude<T, null>

      AssertionError when value is null.