source: imaps-frontend/node_modules/lodash-es/_baseEvery.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 623 bytes
Line 
1import baseEach from './_baseEach.js';
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,
10 * else `false`
11 */
12function baseEvery(collection, predicate) {
13 var result = true;
14 baseEach(collection, function(value, index, collection) {
15 result = !!predicate(value, index, collection);
16 return result;
17 });
18 return result;
19}
20
21export default baseEvery;
Note: See TracBrowser for help on using the repository browser.