Urara-Blog/node_modules/.pnpm-store/v3/files/42/84387a565f2c47a31d92e32d116e30515918cffdeb6e467bb741e8eaae6858b32d75a5541262dd029538a4f876ad43178cb12494dce6c8989d58e6a3b90655
2022-08-14 01:14:53 +08:00

21 lines
625 B
Text

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