Function isNullOrUndefined

  • Type guard for "nullishness".

    Returns

    true if the value is null or undefined, false otherwise.

    Parameters

    • value: unknown

      Any value.

    Returns value is undefined | null