Created
January 3, 2022 06:04
-
-
Save anmolsukki/c2ceaee8dc8eea8652f5b15568dd7370 to your computer and use it in GitHub Desktop.
[React Logics] Remove All Cookies form website
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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