MCPcopy Create free account
hub / github.com/Effect-TS/effect / values

Function values

packages/effect/src/internal/hashMap.ts:1031–1045  ·  view source on GitHub ↗
(self: HashMap<K, V>)

Source from the content-addressed store, hash-verified

1029
1030/** @internal */
1031export 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 */
1048export const entries = <K, V>(self: HashMap<K, V>): IterableIterator<[K, V]> => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected