Const
Determines whether any element of the source iterable satisfies the optional predicate.
Curried version of _some.
Element type produced by the source iterable.
Predicate receiving each element and its index; defaults to a predicate that always returns true.
true
true when pred returns truthy for any element, otherwise false.
pred
false
Error Rethrows any error thrown by pred.
const hasEven = _some([1, 3, 4], (value) => value % 2 === 0);console.log(hasEven); // true Copy
const hasEven = _some([1, 3, 4], (value) => value % 2 === 0);console.log(hasEven); // true
or using the curried version:
const hasEven = pipeInto( [1, 3, 4], some((value) => value % 2 === 0));console.log(hasEven); // true Copy
const hasEven = pipeInto( [1, 3, 4], some((value) => value % 2 === 0));console.log(hasEven); // true
Determines whether any element of the source iterable satisfies the optional predicate.
Curried version of _some.