Skip to content

isEmpty

ts
function Array.isEmpty<T>(target: readonly T[]): boolean

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