Skip to content

isEmpty

Array.isEmpty(array)

Returns true if array has no elements, otherwise returns false.

Example

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

Array.isEmpty([]); // true
ts
import { Array } from "@monstermann/array";

pipe([], Array.isEmpty()); // true