ns-util
Kindly add a basic usage here after you've created a utility.
Equinox Local Storage Usage
Equinox Local Storage utilities. It is used in the following projects:
import { equinoxLocalStorage } from '@nuskin/ns-util';
const markets = equinoxLocalStorage.getEnabledMarkets();
const market = equinoxLocalStorage.getMarket('us');
const isEquinoxEnabled = equinoxLocalStorage.isEquinoxEnabled();
const isMarketEnabled = equinoxLocalStorage.isMarketEnabled('us');
const isEnabledMarketsSaved = equinoxLocalStorage.setEnabledMarkets({
ca: { name: 'Canada', storeID: '423' },
us: { name: 'United States', storeID: '422' }
});
Tags
#equinox #localstorage