Skip to main content

isUndefined

Callable

  • isUndefined(a: unknown): a is undefined

  • Checks if x is undefined.

    Example

    isUndefined(undefined)
    // => true

    isUndefined(true)
    // => false

    isUndefined("1234")
    // => false

    isUndefined(null)
    // => false

    Alternatives


    Parameters

    • a: unknown

    Returns a is undefined

    true if x is a undefined, false otherwise.