MCPcopy Create free account
hub / github.com/WarFrontIO/client / getOrSet

Method getOrSet

src/util/SafeMap.ts:14–21  ·  view source on GitHub ↗

* Get the value for the given key. * If the key is not present in the map, it will be added with an empty array. * @param key The key to get the value for.

(key: K)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

calculateDistanceMapMethod · 0.95
resolveInteractionFunction · 0.80
registerKeyboardListenerFunction · 0.80
onKeyDownFunction · 0.80

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected