• Checks if a value is not undefined

    The opposite of isUndefined

    Example

    const result = isNotUndefined(0);
    console.log(result); // true

    Example

    const result = isNotUndefined(undefined);
    console.log(result); // false

    Returns

    true if value is not undefined, otherwise false

    Type Parameters

    • T

    Parameters

    • value: T

      the value to check

    Returns value is Exclude<T, undefined>

Generated using TypeDoc