* Default iterator that returns entries in sorted order * * @returns An iterator for the map's entries
()
| 164 | * @returns An iterator for the map's entries |
| 165 | */ |
| 166 | *[Symbol.iterator](): IterableIterator<[TKey, TValue]> { |
| 167 | for (const key of this.sortedKeys) { |
| 168 | yield [key, this.map.get(key)!] as [TKey, TValue] |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Returns an iterator for the map's entries in sorted order |