some()
some<
T
>(comparator
): (arr
) =>boolean
Tests whether any elements in the array pass the given comparator.
Type Parameters
• T
Parameters
comparator
Comparator
<T
>
The comparator function to apply to each element of the array.
Returns
Function
Parameters
arr
T
[]
Returns
boolean
Remark
pure function
Example
every(x => !(x & 1))([1, 2, 3, 4, 5]);
// true