* 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)
| 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 |
no outgoing calls
no test coverage detected