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

Function removeItem

packages/shared/src/lib/storageWrapper.ts:32–38  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

30 }
31
32 function removeItem(key: string): void {
33 if (isLocalStorageEnabled()) {
34 localStorage.removeItem(key);
35 } else {
36 delete inMemoryStorage[key];
37 }
38 }
39
40 function clear(): void {
41 if (isLocalStorageEnabled()) {

Callers

nothing calls this directly

Calls 1

isLocalStorageEnabledFunction · 0.85

Tested by

no test coverage detected