1 var baseEach = require('./baseEach');
4 * The base implementation of `_.some` without support for callback shorthands
8 * @param {Array|Object|string} collection The collection to iterate over.
9 * @param {Function} predicate The function invoked per iteration.
10 * @returns {boolean} Returns `true` if any element passes the predicate check,
13 function baseSome(collection, predicate) {
16 baseEach(collection, function(value, index, collection) {
17 result = predicate(value, index, collection);
23 module.exports = baseSome;