* 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`.
(array, iteratee)
| 14614 | * @returns {Array} Returns `array`. |
| 14615 | */ |
| 14616 | function arrayEach(array, iteratee) { |
| 14617 | var index = -1, |
| 14618 | length = array.length; |
| 14619 | |
| 14620 | while (++index < length) { |
| 14621 | if (iteratee(array[index], index, array) === false) { |
| 14622 | break; |
| 14623 | } |
| 14624 | } |
| 14625 | return array; |
| 14626 | } |
| 14627 | |
| 14628 | module.exports = arrayEach; |
| 14629 |