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

Method has

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

Source from the content-addressed store, hash-verified

18 }
19
20 has(target: Map<number | string, V>, p: string | symbol): boolean {
21 if (typeof p === "symbol") return false
22
23 const int = parseInt(p, 10)
24 return target.has(!isNaN(int) ? int : p)
25 }
26
27 ownKeys(target: Map<number | string, V>): ArrayLike<string | symbol> {
28 return [...target.keys()].map(String)

Callers 15

LGraphNode.test.tsFile · 0.80
containsNodeMethod · 0.80
recomputeInsideNodesMethod · 0.80
validateLinksMethod · 0.80
getReroutesMethod · 0.80
findNextRerouteMethod · 0.80
#handleMultiSelectMethod · 0.80
addPositionableMethod · 0.80
processSelectMethod · 0.80
selectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected