Skip to content

Instantly share code, notes, and snippets.

@anmolsukki
Created January 3, 2022 06:04
Show Gist options
  • Save anmolsukki/c2ceaee8dc8eea8652f5b15568dd7370 to your computer and use it in GitHub Desktop.
Save anmolsukki/c2ceaee8dc8eea8652f5b15568dd7370 to your computer and use it in GitHub Desktop.
[React Logics] Remove All Cookies form website
const cookiesName = Cookies.get();
const cookiesKey = (cookiesName && Object.keys(cookiesName)) || [];
if (Array.isArray(cookiesKey)) {
cookiesKey.forEach((data) => {
Cookies.remove(data);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment