Skip to content

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

Function: isBoolean()

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

Check whether args is boolean.

Type parameters

A

Parameters

args: A

Returns

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

Example

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

More examples

Source

packages/core/src/pipe/strict/isBoolean.ts:14

Released under the MIT License.