(type, reverse)
| 174 | } |
| 175 | |
| 176 | __iterator(type, reverse) { |
| 177 | const iterator = this._iter.__iterator(ITERATE_VALUES, reverse); |
| 178 | return new Iterator(() => { |
| 179 | while (true) { |
| 180 | const step = iterator.next(); |
| 181 | if (step.done) { |
| 182 | return step; |
| 183 | } |
| 184 | const entry = step.value; |
| 185 | // Check if entry exists first so array access doesn't throw for holes |
| 186 | // in the parent iteration. |
| 187 | if (entry) { |
| 188 | validateEntry(entry); |
| 189 | const indexedCollection = isCollection(entry); |
| 190 | return iteratorValue( |
| 191 | type, |
| 192 | indexedCollection ? entry.get(0) : entry[0], |
| 193 | indexedCollection ? entry.get(1) : entry[1], |
| 194 | step |
| 195 | ); |
| 196 | } |
| 197 | } |
| 198 | }); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | ToIndexedSequence.prototype.cacheResult = |
nothing calls this directly
no test coverage detected