Skip to content

none

none(array, predicate)

Returns true if no elements in array satisfy the provided predicate function, otherwise returns false.

ts
none([1, 2, 3, 4], (x) => x > 10); // true
ts
pipe(
    [1, 2, 3, 4],
    none((x) => x > 10),
); // true