MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / get

Method get

common/src/global_variable.ts:8–14  ·  view source on GitHub ↗
(k: string, def?: any)

Source from the content-addressed store, hash-verified

6 }
7
8 public static get(k: string, def?: any) {
9 if (GlobalVariable.map.has(k)) {
10 return GlobalVariable.map.get(k);
11 } else {
12 return def;
13 }
14 }
15
16 public static del(k: string) {
17 return GlobalVariable.map.delete(k);

Callers 15

getFileIconFunction · 0.45
dockerPortsParseFunction · 0.45
$emitMethod · 0.45
_addCallbackMethod · 0.45
changeIdMethod · 0.45
updateMethod · 0.45
updateProgressMethod · 0.45
subscribeMethod · 0.45
loadModsFunction · 0.45
getSummaryPackagesFunction · 0.45
requestForwardMethod · 0.45
cannelForwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected