The type of elements in the array.
The array
A predicate callback function
Returns true
if all elements pass the predicate check, else false
.
const numbers = [1, 2, 3, 4, 5];
const isEven = (num) => num % 2 === 0;
arrEvery(numbers, isEven);
//=> false
arrEvery(numbers, (num) => num > 0);
//=> true
Generated using TypeDoc
Returns true if the predicate is satisfied for every element of the passed array; otherwise false.