Checks if any element of an Iterable matches a Predicate.
Is any value even?
const anyValueEven = some(x => x % 2);const result = anyValueEven([1,2,3]);console.log(result); // true
every and filter for similar operations.
true if the Predicate returns true for any element
true
the Iterable value type
the Predicate to match
Generated using TypeDoc
Checks if any element of an Iterable matches a Predicate.
Example
Is any value even?
See
every and filter for similar operations.
Returns
trueif the Predicate returnstruefor any element