Const
Determines whether every element in the source iterable satisfies the predicate.
Curried version of _every.
Element type produced by the source iterable.
Predicate receiving each element and its index; must return true for all elements.
true
true when every invocation of pred returns truthy; otherwise false.
pred
false
Error Rethrows any error thrown by pred.
const allEven = _every([2, 4, 6], (value) => value % 2 === 0);console.log(allEven); // true Copy
const allEven = _every([2, 4, 6], (value) => value % 2 === 0);console.log(allEven); // true
or using the curried version:
const allEven = pipeInto([2, 4, 6], every((value) => value % 2 === 0));console.log(allEven); // true Copy
const allEven = pipeInto([2, 4, 6], every((value) => value % 2 === 0));console.log(allEven); // true
Determines whether every element in the source iterable satisfies the predicate.
Curried version of _every.