MCPcopy
hub / github.com/lodash/lodash / arrayEach

Function arrayEach

lodash.js:526–536  ·  view source on GitHub ↗

* 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`.

(array, iteratee)

Source from the content-addressed store, hash-verified

524 * @returns {Array} Returns `array`.
525 */
526 function arrayEach(array, iteratee) {
527 var index = -1,
528 length = array == null ? 0 : array.length;
529
530 while (++index < length) {
531 if (iteratee(array[index], index, array) === false) {
532 break;
533 }
534 }
535 return array;
536 }
537
538 /**
539 * A specialized version of `_.forEachRight` for arrays without support for

Callers 5

baseCloneFunction · 0.85
updateWrapDetailsFunction · 0.85
templateFunction · 0.85
lodash.jsFile · 0.85
mixinFunction · 0.85

Calls 1

iterateeFunction · 0.70

Tested by

no test coverage detected