Gets an array of all keys, sorted
()
| 220 | |
| 221 | /** Gets an array of all keys, sorted */ |
| 222 | keysArray() { |
| 223 | const results: Array<K> = [] |
| 224 | this._root.forRange( |
| 225 | this.minKey()!, |
| 226 | this.maxKey()!, |
| 227 | true, |
| 228 | false, |
| 229 | this, |
| 230 | 0, |
| 231 | (k, _v) => { |
| 232 | results.push(k) |
| 233 | }, |
| 234 | ) |
| 235 | return results |
| 236 | } |
| 237 | |
| 238 | /** Returns the next pair whose key is larger than the specified key (or undefined if there is none). |
| 239 | * If key === undefined, this function returns the lowest pair. |
no test coverage detected