Urara-Blog/node_modules/.pnpm-store/v3/files/6c/dfbcd3a1f8b6b5ac74f80a4b9f71f4006f7079ac2a7399b8e44972981e18f8064d9bb544f8775fbab5f7c8b4adc50ce0b0bb3f21b3bf97b6d2cf3da5ab72a0
2022-08-14 01:14:53 +08:00

22 lines
537 B
Text

/**
* A specialized version of `_.forEach` for arrays without support for
* iteratee shorthands.
*
* @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 == null ? 0 : array.length;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
module.exports = arrayEach;