(arr, fn)
| 1627 | } |
| 1628 | |
| 1629 | function map(arr, fn) { |
| 1630 | var res = [], i; |
| 1631 | for (i = 0; i < arr.length; ++i) { |
| 1632 | res.push(fn(arr[i], i)); |
| 1633 | } |
| 1634 | return res; |
| 1635 | } |
| 1636 | |
| 1637 | function hasOwnProp(a, b) { |
| 1638 | return Object.prototype.hasOwnProperty.call(a, b); |