Function isNull

  • Checks if the given value is null.

    Parameters

    • val: unknown

      The value to check.

    Returns val is null

    Returns true if the value is null, false otherwise.