(self2, method, wrapValue)
| 971 | } |
| 972 | }; |
| 973 | function iterator(self2, method, wrapValue) { |
| 974 | const arr = shallowReadArray(self2); |
| 975 | const iter = arr[method](); |
| 976 | if (arr !== self2 && !/* @__PURE__ */ isShallow(self2)) { |
| 977 | iter._next = iter.next; |
| 978 | iter.next = () => { |
| 979 | const result = iter._next(); |
| 980 | if (!result.done) { |
| 981 | result.value = wrapValue(result.value); |
| 982 | } |
| 983 | return result; |
| 984 | }; |
| 985 | } |
| 986 | return iter; |
| 987 | } |
| 988 | const arrayProto = Array.prototype; |
| 989 | function apply(self2, method, fn, thisArg, wrappedRetFn, args) { |
| 990 | const arr = shallowReadArray(self2); |
no test coverage detected