MCPcopy Create free account
hub / github.com/Comfy-Org/litegraph.js / set

Method set

src/MapProxyHandler.ts:40–46  ·  view source on GitHub ↗
(target: Map<number | string, V>, p: string | symbol, newValue: any)

Source from the content-addressed store, hash-verified

38 }
39
40 set(target: Map<number | string, V>, p: string | symbol, newValue: any): boolean {
41 if (typeof p === "symbol") return false
42
43 const int = parseInt(p, 10)
44 target.set(!isNaN(int) ? int : p, newValue)
45 return true
46 }
47
48 deleteProperty(target: Map<number | string, V>, p: string | symbol): boolean {
49 return target.delete(p as number | string)

Callers 15

updateAreaMethod · 0.80
connectSlotsMethod · 0.80
configureMethod · 0.80
clearMethod · 0.80
_pasteFromClipboardMethod · 0.80
drawNodeMethod · 0.80
drawNodeShapeMethod · 0.80
drawSnapGuideMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected