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
5.11.0
someValues({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => true Copy
someValues({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => true
The object to iterate over.
The function invoked per iteration.
Returns true if any element passes the predicate check, else false.
true
false
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).Since
5.11.0
Example