MCPcopy
hub / github.com/NervJS/nerv / get

Method get

packages/nerv-utils/src/simple-map.ts:32–43  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

30 }
31
32 get (k) {
33 const len = this.cache.length
34 if (!len) {
35 return
36 }
37 for (let i = 0; i < len; i++) {
38 const item = this.cache[i]
39 if (item.k === k) {
40 return item.v
41 }
42 }
43 }
44
45 has (k) {
46 const len = this.cache.length

Callers 15

attachEventFunction · 0.80
detachEventFunction · 0.80
dispatchEventFunction · 0.80
eventHandlerFunction · 0.80
patchKeyedChildrenFunction · 0.80
updateMethod · 0.80
findFiberByHostInstanceFunction · 0.80
simple-map.spec.jsFile · 0.80
kFunction · 0.80
xFunction · 0.80
TFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected