const symbol = Symbol.for('EpochGlobal'); const EpochWindow = window as any; function getStore() { if (!EpochWindow[symbol]) { EpochWindow[symbol] = {}; } return EpochWindow[symbol]; } export const setValue = (key: string, value: any) => { const store = getStore(); store[key] = value; }; export const getValue = (key: string) => { const store = getStore(); return store[key]; };