(self: HashMap<K, V>)
| 1012 | |
| 1013 | /** @internal */ |
| 1014 | export const keys = <K, V>(self: HashMap<K, V>): IterableIterator<K> => { |
| 1015 | const iterator = self[Symbol.iterator]() |
| 1016 | return { |
| 1017 | [Symbol.iterator]() { |
| 1018 | return this |
| 1019 | }, |
| 1020 | next() { |
| 1021 | const result = iterator.next() |
| 1022 | if (result.done) { |
| 1023 | return { done: true, value: undefined } |
| 1024 | } |
| 1025 | return { done: false, value: result.value[0] } |
| 1026 | } |
| 1027 | } |
| 1028 | } |
| 1029 | |
| 1030 | /** @internal */ |
| 1031 | export const values = <K, V>(self: HashMap<K, V>): IterableIterator<V> => { |
nothing calls this directly
no outgoing calls
no test coverage detected