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

Function hasKey

packages/shared/src/features/squads/lib/startupsAdEvents.ts:25–31  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

23 !!date && Date.now() - new Date(date).getTime() < hours * HOUR_MS;
24
25const hasKey = (key: string): boolean => {
26 try {
27 return !!storageWrapper.getItem(key);
28 } catch {
29 return false;
30 }
31};
32
33const setKey = (key: string): void => {
34 try {

Callers 2

markOnceFunction · 0.85
trackCompanyPageReadyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected