MCPcopy
hub / github.com/mobxjs/mobx / entries

Method entries

packages/mobx/src/types/observablemap.ts:318–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 }
317
318 entries(): MapIterator<IMapEntry<K, V>> {
319 const self = this
320 const keys = this.keys()
321 return makeIterableForMap({
322 next() {
323 const { done, value } = keys.next()
324 return {
325 done,
326 value: done ? (undefined as any) : ([value, self.get(value)!] as [K, V])
327 }
328 }
329 })
330 }
331
332 [Symbol.iterator]() {
333 return this.entries()

Callers 15

[Symbol.iterator]Method · 0.95
replaceMethod · 0.45
unwrapFunction · 0.45
entriesFunction · 0.45
perf.jsFile · 0.45
proxies.jsFile · 0.45
expectEntriesReactionFunction · 0.45
map.jsFile · 0.45
set.jsFile · 0.45
array.jsFile · 0.45
expectEntriesReactionFunction · 0.45

Calls 2

keysMethod · 0.95
makeIterableForMapFunction · 0.85

Tested by 3

expectEntriesReactionFunction · 0.36
expectEntriesReactionFunction · 0.36
expectEntriesReactionFunction · 0.36