some

The some() method tests whether at least one element in the array passes the test implemented by the provided function. 3

const numbers = [1, 3, 5, 7, 9];
numbers.some((num) => num % 2 !== 0);
// => true

References


Backlinks