every
The every() method tests whether all elements in the array pass the test implemented by the provided function. It returns a Boolean value. 2
const numbers = [1, 3, 5, 7, 9];
numbers.every((num) => num % 2 !== 0);
// => true
References
Backlinks