Skip to content

Instantly share code, notes, and snippets.

View msfern's full-sized avatar
🌜
learning learning learning

Stephanie Fernandes msfern

🌜
learning learning learning
View GitHub Profile
@msfern
msfern / gist:dc78f72735ba19817d5c22a1c16cf75f
Created July 5, 2018 20:37
Getting and Setting cookie vale
this.iterateCookieList = function() {
var cookies = document.cookie.split(';');
var tollCookie = cookies.map((cookie) => {
var cookieName = cookie.split('=');
return cookieName;
}).filter((cookie) => {
if(cookie[0].trim() == "pedagio") {
self.editCookieValue(cookie);
}
});