MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / getString

Function getString

frontend/src/lib/storage.ts:18–24  ·  view source on GitHub ↗
(key: string, ifNotSet: string)

Source from the content-addressed store, hash-verified

16 return ifNotSet;
17 },
18 getString(key: string, ifNotSet: string): string {
19 const value = storage.getItem(key);
20 if (value != null) {
21 return value;
22 }
23 return ifNotSet;
24 },
25 setNumber(key: string, value: number): number {
26 storage.setItem(key, '' + value);
27 return value;

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected