fx-flow v0.7.0 / pipe/strict / isNil
Function: isNil()
isNil<
A
>(args
):args is Include<A, boolean>
Check whether args
is null or undefined.
Type parameters
• A
Parameters
• args: A
Returns
args is Include<A, boolean>
Example
typescript
isArray([1, 2, 3]); // false
isArray(null); // true
isArray(undefined); // true