Type alias Nullish

Nullish: Maybe<null>

Nullish value (either null or undefined).

Remarks

This type is useful for cases where a value might be null or undefined, generally meant to be dealt with using the ?? operator.

Example

const nullishUndefined: Nullish = undefined;
const nullishNull: Nullish = null;

See