Function isNull

  • typeof "null" alias. This "patches" typeof so null is not "object" but "null" instead (rejected proposal for lack of backwards compatibility, more details here).

    Example

    isNull(null); // true
    isNull(undefined); // false

    Returns

    true if the given value is a null, false otherwise.

    Type Parameters

    • Actual

    Parameters

    • input: null | Actual

    Returns input is null