* This method only iterates over the keys and not over the values. * Hence, it is more efficient than the `#entries` method. * It returns an iterator that you can use if you need to iterate over the values for a given key. * @returns An iterator of all *keys* in the index and their correspo
()
| 287 | * @returns An iterator of all *keys* in the index and their corresponding value iterator. |
| 288 | */ |
| 289 | *entriesIterators(): Iterable<[TKey, Iterable<[TValue, number]>]> { |
| 290 | for (const key of this.#inner.keys()) { |
| 291 | yield [key, this.getIterator(key)] |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | /** |
| 296 | * This method adds a value to the index. |
no test coverage detected