Skip to content

fx-flow v0.7.0 / pipe/strict / isNil

Function: isNil()

isNil<A>(args): args is Include&lt;A, boolean&gt;

Check whether args is null or undefined.

Type parameters

A

Parameters

args: A

Returns

args is Include&lt;A, boolean&gt;

Example

typescript
isArray([1, 2, 3]); // false
isArray(null); // true
isArray(undefined); // true

More examples

Source

packages/core/src/pipe/strict/isNil.ts:17

Released under the MIT License.