(array, iterator)
| 50 | |
| 51 | // Simple cross-browser `forEach` iterator for arrays. |
| 52 | function forEach(array, iterator) { |
| 53 | for (var index = 0; index < array.length; index += 1) { |
| 54 | iterator(array[index], index); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // Simple cross-browser replacement for `Array.reduce` |
| 59 | function reduce(array, iterator, value) { |
no outgoing calls
no test coverage detected
searching dependent graphs…