Function isNotNull

  • Checks if a given value is not null.

    Parameters

    • value: unknown

      The value to be checked for null.

    Returns boolean

    true if the value is not null, false otherwise.

    Example

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

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

Generated using TypeDoc