Function isNil

  • Checks if value is null or undefined.

    Parameters

    • value: any

      The value to check.

    Returns boolean

    Returns true if value is nullish, else false.

    Example

    isNil(null)
    // => true

    isNil(void 0)
    // => true

    isNil(NaN)
    // => false

Generated using TypeDoc