Function isTypeUndefined

  • A Type Guard to check if given value type is equal to "undefined"

    Example

    import { isTypeUndefined } from 'type-guard-helpers'

    const test = 'foobar' as unknown;
    if (isTypeUndefined(test)) {
    test; // undefined
    }

    Type Parameters

    • Value extends unknown

    • Result extends undefined = undefined

    Parameters

    • value: Value

    Returns value is Combine<Value, Result>

Generated using TypeDoc