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

Method bindAllMethods

src/MapProxyHandler.ts:52–64  ·  view source on GitHub ↗
(map: Map<any, any>)

Source from the content-addressed store, hash-verified

50 }
51
52 static bindAllMethods(map: Map<any, any>): void {
53 map.clear = map.clear.bind(map)
54 map.delete = map.delete.bind(map)
55 map.forEach = map.forEach.bind(map)
56 map.get = map.get.bind(map)
57 map.has = map.has.bind(map)
58 map.set = map.set.bind(map)
59 map.entries = map.entries.bind(map)
60 map.keys = map.keys.bind(map)
61 map.values = map.values.bind(map)
62
63 map[Symbol.iterator] = map[Symbol.iterator].bind(map)
64 }
65}

Callers 1

constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected