Skip to content

Latest commit

 

History

History
executable file
·
11 lines (8 loc) · 259 Bytes

File metadata and controls

executable file
·
11 lines (8 loc) · 259 Bytes

.every(callback[, this])

Determines whether all the members of an array satisfy the specified test.

const numbers = [2, 4, 5, 6, 8];

const allEven = numbers.every(function(value, index, numbersArray) {
  return (value % 2 === 0);
});