This commit is contained in:
fofolee
2019-03-27 12:19:53 +08:00
parent 2e8928571e
commit 603b7ae0ef
484 changed files with 27927 additions and 5307 deletions

23
node_modules/lodash/internal/arraySome.js generated vendored Normal file
View File

@@ -0,0 +1,23 @@
/**
* A specialized version of `_.some` for arrays without support for callback
* shorthands and `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
length = array.length;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
}
module.exports = arraySome;