• Ensures that given value is not undefined and not null for the remainder of the containing scope.

    Type Parameters

    • T

    Parameters

    • value: undefined | null | T

      Any value.

    • Optional message: string | (() => string)

      Optional message or message creation function.

    Returns asserts value is NonNullable<T>

Generated using TypeDoc