1 var baseEach = require('./_baseEach');
4 * The base implementation of `_.every` without support for iteratee shorthands.
7 * @param {Array|Object} collection The collection to iterate over.
8 * @param {Function} predicate The function invoked per iteration.
9 * @returns {boolean} Returns `true` if all elements pass the predicate check, else `false`
11 function baseEvery(collection, predicate) {
13 baseEach(collection, function(value, index, collection) {
14 result = !!predicate(value, index, collection);
20 module.exports = baseEvery;