truthCheckCollection
Checks if the predicate function is truthy for all elements of a collection.
- Use
Array.prototype.every()
to check if each passed object has the specified property and if it returns a truthy value.
Checks if the predicate function is truthy for all elements of a collection.
Array.prototype.every()
to check if each passed object has the specified property and if it returns a truthy value.