Sha256: ed3ced066487a1782fb0310a2396e66be1d877bf7f76c424f9410979eb1c784a
Contents?: true
Size: 652 Bytes
Versions: 14
Compression:
Stored size: 652 Bytes
Contents
var baseEach = require('./baseEach'); /** * The base implementation of `_.every` without support for callback * shorthands or `this` binding. * * @private * @param {Array|Object|string} 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;
Version data entries
14 entries across 7 versions & 1 rubygems