MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / arrayEach

Function arrayEach

lib/web/jshint.js:2848–2858  ·  view source on GitHub ↗

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

(array, iteratee)

Source from the content-addressed store, hash-verified

2846 * @returns {Array} Returns `array`.
2847 */
2848 function arrayEach(array, iteratee) {
2849 var index = -1,
2850 length = array.length;
2851
2852 while (++index < length) {
2853 if (iteratee(array[index], index, array) === false) {
2854 break;
2855 }
2856 }
2857 return array;
2858 }
2859
2860 /**
2861 * A specialized version of `_.forEachRight` for arrays without support for

Callers 2

baseMergeFunction · 0.85
runInContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected