Security update for Core, with self-updated composer
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _baseEvery.js
1 var baseEach = require('./_baseEach');
2
3 /**
4  * The base implementation of `_.every` without support for iteratee shorthands.
5  *
6  * @private
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`
10  */
11 function baseEvery(collection, predicate) {
12   var result = true;
13   baseEach(collection, function(value, index, collection) {
14     result = !!predicate(value, index, collection);
15     return result;
16   });
17   return result;
18 }
19
20 module.exports = baseEvery;