Alias for isNullOrUndefined.
isNullOrUndefined
Checks if a value is "nullish" (null or undefined). This is a type guard that narrows the type to null | undefined.
null
undefined
null | undefined
For checking if a value is null, use isNull. For checking if a value is undefined, use isUndefined.
isNull
isUndefined
The value to check.
true if the value is null or undefined, false otherwise.
true
false
1.0
Alias for
isNullOrUndefined.Checks if a value is "nullish" (
nullorundefined). This is a type guard that narrows the type tonull | undefined.For checking if a value is
null, useisNull. For checking if a value isundefined, useisUndefined.