1 var baseEach = require('./_baseEach');
4 * The base implementation of `_.some` 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 any element passes the predicate check, else `false`.
11 function baseSome(collection, predicate) {
14 baseEach(collection, function(value, index, collection) {
15 result = predicate(value, index, collection);
21 module.exports = baseSome;