some()
some<
T>(comparator): (arr) =>boolean
Tests whether any elements in the array pass the given comparator.
Type Parameters
T
T
The type of array elements.
Parameters
comparator
Comparator<T>
The comparator function to apply to each element of the array.
Returns
(
arr):boolean
Parameters
arr
T[]
Returns
boolean
Remarks
pure function
Example
import { some } from '@accelint/core';
every(x => !(x & 1))([1, 2, 3, 4, 5]);
// true