Skip to content

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

Function: isNull()

isNull<A>(args): args is Include&lt;A, null&gt;

Check whether args is null.

Type parameters

A

Parameters

args: A

Returns

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

Example

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

More examples

Source

packages/core/src/pipe/strict/isNull.ts:15

Released under the MIT License.