true
if any value passes the test, false
otherwise.
Iteration terminates on the first true
predicate result.
Linear.
import { some } from '@lumino/algorithm';
let data = [5, 7, 1];
some(data, value => value === 7); // true
some(data, value => value === 3); // false
Test whether any value in an iterable satisfies a predicate.