$some
The$some operator checks if at least one element in an array satisfies a provided condition.
Input
- An array containing an array to check and a condition to evaluate for each element
Output
trueif at least one element satisfies the condition,falseotherwise
Examples
Check If Any Number Is Even
true
Check If Any Object Has Age Over 30
true
