Function isNull

  • Checks if a given value is null.

    Parameters

    • value: unknown

      The value to be checked for null.

    Returns boolean

    true if the value is null, false otherwise.

    Example

    const value1 = null;
    const value2 = "Hello";

    console.log(isNull(value1)); // true
    console.log(isNull(value2)); // false

Generated using TypeDoc