MCPcopy
hub / github.com/marimo-team/marimo / add

Method add

frontend/src/utils/multi-map.ts:17–24  ·  view source on GitHub ↗
(key: K, value: V)

Source from the content-addressed store, hash-verified

15 }
16
17 add(key: K, value: V): void {
18 if (this.map.has(key)) {
19 // oxlint-disable-next-line typescript/no-non-null-assertion
20 this.map.get(key)!.push(value);
21 } else {
22 this.map.set(key, [value]);
23 }
24 }
25
26 has(key: K): boolean {
27 return this.map.has(key);

Callers 13

buildMapsFromConfigMethod · 0.95
mergeFunction · 0.45
toggleFunction · 0.45
keyByFunction · 0.45
applyHidingRulesFunction · 0.45
ADD_PRINTING_CLASSFunction · 0.45
uniqueByFunction · 0.45
subscribeMethod · 0.45
download.test.tsxFile · 0.45
multi-map.test.tsFile · 0.45
ThemeProvider.tsxFile · 0.45

Calls 4

pushMethod · 0.80
getMethod · 0.65
setMethod · 0.65
hasMethod · 0.45

Tested by

no test coverage detected