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

22
node_modules/lodash/internal/arrayEach.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
* A specialized version of `_.forEach` for arrays without support for callback
* shorthands and `this` binding.
*
* @private
* @param {Array} array The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, iteratee) {
var index = -1,
length = array.length;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
module.exports = arrayEach;