📝 Edit page
➕ Add page
Some
- Array.prototype.some in MDN docs
Syntax
ARRAY.some(EXPRESSION)
Examples
Here checking if at least one value is even.
const myArray = [1, 2, 3, 4, 5];
myArray.some(i => i % 2 === 0));
// true
Similar to any
in Python.