Checks if predicate returns truthy for any element of object. Iteration is stopped once predicate returns truthy. The predicate is invoked with three arguments: (value, key, object).
predicate
object
The object to iterate over.
The function invoked per iteration.
Returns true if any element passes the predicate check, else false.
true
false
5.11.0
someValues({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => true Copy
someValues({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => true
Checks if
predicate
returns truthy for any element ofobject
. Iteration is stopped oncepredicate
returns truthy. The predicate is invoked with three arguments: (value, key, object).