Skip to content

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

Function: isArray()

isArray<A>(args): args is Include<A, unknown[] | readonly unknown[]>

Check whether args is an array.

Type parameters

A

Parameters

args: A

Returns

args is Include<A, unknown[] | readonly unknown[]>

Example

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

More examples

Source

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

Released under the MIT License.