()
| 453 | let innerIndex = 0; |
| 454 | const iter: IterableIterator<[K, V]> = { |
| 455 | next(): IteratorResult<[K, V]> { |
| 456 | while (true) { |
| 457 | if (currentList !== null && innerIndex < currentList.length) { |
| 458 | return { |
| 459 | value: [currentKey, currentList[innerIndex++]!], |
| 460 | done: false, |
| 461 | }; |
| 462 | } |
| 463 | const outerResult = outer.next(); |
| 464 | if (outerResult.done) { |
| 465 | currentList = null; |
| 466 | return { value: undefined, done: true }; |
| 467 | } |
| 468 | currentKey = outerResult.value[0]; |
| 469 | currentList = outerResult.value[1].slice(); |
| 470 | innerIndex = 0; |
| 471 | } |
| 472 | }, |
| 473 | [Symbol.iterator]() { |
| 474 | return this; |
| 475 | }, |
no test coverage detected