Checks if all elements of an Iterable match a Predicate.
const allValuesEven = every(isEven);const result = allValuesEven([2,4,6]);console.log(result); // true
filter and some for similar operations.
true if the Predicate returns true for all elements
true
the Iterable value type
the Predicate to match
Generated using TypeDoc
Checks if all elements of an Iterable match a Predicate.
Example
See
filter and some for similar operations.
Returns
trueif the Predicate returnstruefor all elements