notNullish
Callable
Type parameters
- T
Parameters
value: undefined | null | T
The value to check.
Returns value is NonNullable<T>
A boolean indicating whether the value is not nullish.
The value to check.
A boolean indicating whether the value is not nullish.
Type guard that checks if a given value is not null or undefined.