Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function getCookie(name) {
  2. const cookie = document.cookie.match(new RegExp(name + '=([^;]+)'));
  3. return (cookie != null) ? cookie[1] : null;
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement