* Checks if `predicate` returns truthy for **all** elements of `collection`. * Iteration is stopped once `predicate` returns falsey. The predicate is * invoked with three arguments: (value, index|key, collection). * * **Note:** This method returns `true` for
(collection, predicate, guard)
| 19751 | * // => false |
| 19752 | */ |
| 19753 | function every(collection, predicate, guard) { |
| 19754 | var func = isArray(collection) ? arrayEvery : baseEvery; |
| 19755 | if (guard && isIterateeCall(collection, predicate, guard)) { |
| 19756 | predicate = undefined; |
| 19757 | } |
| 19758 | return func(collection, getIteratee(predicate, 3)); |
| 19759 | } |
| 19760 | |
| 19761 | /** |
| 19762 | * Iterates over elements of `collection`, returning an array of all elements |
no test coverage detected