• Asserts that a value is defined and not null or NaN.

    Type Parameters

    • T

    Parameters

    • value: undefined | null | T

      The value to assert.

    Returns asserts value is T

    If the value is null, undefined, or NaN.