(self: HashMap<K, V>)
| 1029 | |
| 1030 | /** @internal */ |
| 1031 | export const values = <K, V>(self: HashMap<K, V>): IterableIterator<V> => { |
| 1032 | const iterator = self[Symbol.iterator]() |
| 1033 | return { |
| 1034 | [Symbol.iterator]() { |
| 1035 | return this |
| 1036 | }, |
| 1037 | next() { |
| 1038 | const result = iterator.next() |
| 1039 | if (result.done) { |
| 1040 | return { done: true, value: undefined } |
| 1041 | } |
| 1042 | return { done: false, value: result.value[1] } |
| 1043 | } |
| 1044 | } |
| 1045 | } |
| 1046 | |
| 1047 | /** @internal */ |
| 1048 | export const entries = <K, V>(self: HashMap<K, V>): IterableIterator<[K, V]> => { |
nothing calls this directly
no outgoing calls
no test coverage detected