Skip to content

is

ts
function Array.is(target: unknown): target is readonly unknown[]

Returns true if value is an array, otherwise returns false.

Example

ts
import { Array } from "@monstermann/array";

Array.is([1, 2, 3]); // true
ts
import { Array } from "@monstermann/array";

pipe([1, 2, 3], Array.is()); // true