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

Function get

plugins/src/preload/api/DataStore.ts:28–35  ·  view source on GitHub ↗
(key, fallback)

Source from the content-addressed store, hash-verified

26 },
27
28 get(key, fallback) {
29 if (typeof key !== 'string') {
30 return undefined;
31 } else if (data().has(key)) {
32 return data().get(key);
33 }
34 return fallback;
35 },
36
37 set(key, value) {
38 if (typeof key !== 'string') {

Callers

nothing calls this directly

Calls 3

dataFunction · 0.85
hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected