Checks if predicate returns truthy for all properties of object. Iteration is stopped once predicate returns falsey. The predicate is invoked with three arguments: (value, key, object).
predicate
object
Note: This method returns true for empty objects because everything is true of elements of empty objects.
true
The object to iterate over.
The function invoked per iteration.
Returns true if all properties pass the predicate check, else false.
false
5.11.0
everyValue({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => false Copy
everyValue({ 'a': 0, 'b': 'yes', 'c': false }, Boolean)// => false
Checks if
predicate
returns truthy for all properties ofobject
. Iteration is stopped oncepredicate
returns falsey. The predicate is invoked with three arguments: (value, key, object).Note: This method returns
true
for empty objects because everything is true of elements of empty objects.