The type of elements in the input array.
The array to check.
The predicate function to apply to each element.
Returns true
if at least one element in the array passes the test implemented by the provided function, otherwise false
.
const numbers = [1, 2, 3, 4, 5];
const isEven = (num) => num % 2 === 0;
arrSome(numbers, isEven);
//=> true
Generated using TypeDoc
Checks if at least one element in the array satisfies the provided predicate.