tguard-js
    Preparing search index...

    Function isNullish

    • Alias for isNullOrUndefined.

      Checks if a value is "nullish" (null or undefined). This is a type guard that narrows the type to null | undefined.

      For checking if a value is null, use isNull. For checking if a value is undefined, use isUndefined.

      Parameters

      • x: unknown

        The value to check.

      Returns x is null | undefined

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

      1.0