Function isNullish

  • Checks if a value is null or undefined.

    Example

    isNullish(null)
    // => true

    isNullish(undefined)
    // => true

    isNullish(10)
    // => false

    Type Parameters

    • T

      The type of the input value.

    Parameters

    • value: undefined | null | T

      The value to be checked.

    Returns value is undefined | null

    true if the value is null or undefined, false otherwise.

Generated using TypeDoc v0.24.7