• Asserts and narrows the type for defined values.

    Type Parameters

    • T

    Parameters

    • value: undefined | T

    Returns asserts value is T

    for null or undefined values.