MCPcopy Create free account
hub / github.com/dailydotdev/apps / clear

Function clear

packages/shared/src/lib/storageWrapper.ts:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 function clear(): void {
41 if (isLocalStorageEnabled()) {
42 localStorage.clear();
43 } else {
44 Object.keys(inMemoryStorage).forEach((key) => {
45 delete inMemoryStorage[key];
46 });
47 }
48 }
49
50 return {
51 getItem,

Callers 2

setup.tsFile · 0.85
setup.tsFile · 0.85

Calls 1

isLocalStorageEnabledFunction · 0.85

Tested by

no test coverage detected