(it)
| 145 | * @returns {boolean} result |
| 146 | */ |
| 147 | const next = (it) => { |
| 148 | const result = it.next(); |
| 149 | if (result.done) { |
| 150 | if (iteratorStack.length === 0) return false; |
| 151 | tuple.pop(); |
| 152 | return next( |
| 153 | /** @type {IteratorStack<T, V>} */ |
| 154 | (iteratorStack.pop()) |
| 155 | ); |
| 156 | } |
| 157 | const [key, value] = result.value; |
| 158 | iteratorStack.push(it); |
| 159 | tuple.push(key); |
| 160 | if (value instanceof Set) { |
| 161 | currentSetIterator = value[Symbol.iterator](); |
| 162 | return true; |
| 163 | } |
| 164 | return next(value[Symbol.iterator]()); |
| 165 | }; |
| 166 | |
| 167 | next(this._map[Symbol.iterator]()); |
| 168 |
no test coverage detected