Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Object.keys(state).forEach(key => {
if (key !== 'plugins') storage.removeItem(`persist:${key}`);
});
Object.keys(state).forEach(key => {
storage.removeItem(`persist:${key}`);
});
state = undefined;