(arr, iterator)
| 22 | //// cross-browser compatiblity functions //// |
| 23 | |
| 24 | var _forEach = function (arr, iterator) { |
| 25 | if (arr.forEach) { |
| 26 | return arr.forEach(iterator); |
| 27 | } |
| 28 | for (var i = 0; i < arr.length; i += 1) { |
| 29 | iterator(arr[i], i, arr); |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | var _map = function (arr, iterator) { |
| 34 | if (arr.map) { |
no outgoing calls
no test coverage detected
searching dependent graphs…