(type, reverse)
| 269 | } |
| 270 | |
| 271 | __iteratorUncached(type, reverse) { |
| 272 | if (reverse) { |
| 273 | return this.cacheResult().__iterator(type, reverse); |
| 274 | } |
| 275 | const collection = this._collection; |
| 276 | const iterator = getIterator(collection); |
| 277 | if (!isIterator(iterator)) { |
| 278 | return new Iterator(iteratorDone); |
| 279 | } |
| 280 | let iterations = 0; |
| 281 | return new Iterator(() => { |
| 282 | const step = iterator.next(); |
| 283 | return step.done ? step : iteratorValue(type, iterations++, step.value); |
| 284 | }); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | // # pragma Helper functions |
no test coverage detected