* Returns an iterator for the map's values in sorted order * * @returns An iterator for the map's values
()
| 193 | * @returns An iterator for the map's values |
| 194 | */ |
| 195 | values(): IterableIterator<TValue> { |
| 196 | return function* (this: SortedMap<TKey, TValue>) { |
| 197 | for (const key of this.sortedKeys) { |
| 198 | yield this.map.get(key)! |
| 199 | } |
| 200 | }.call(this) |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * Executes a callback function for each key-value pair in the map in sorted order |