* 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)
| 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 |