MCPcopy Index your code
hub / github.com/immerjs/immer / values

Method values

src/plugins/mapset.ts:127–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125 }
126
127 values(): IterableIterator<any> {
128 const iterator = this.keys()
129 return {
130 [Symbol.iterator]: () => this.values(),
131 next: () => {
132 const r = iterator.next()
133 /* istanbul ignore next */
134 if (r.done) return r
135 const value = this.get(r.value)
136 return {
137 done: false,
138 value
139 }
140 }
141 } as any
142 }
143
144 entries(): IterableIterator<[any, any]> {
145 const iterator = this.keys()

Callers 5

read-cpuprofile.jsFile · 0.45
valuesMethod · 0.45
findByIdFunction · 0.45
firstFunction · 0.45
secondFunction · 0.45

Calls 2

keysMethod · 0.95
getMethod · 0.95

Tested by 3

findByIdFunction · 0.36
firstFunction · 0.36
secondFunction · 0.36