Skip to content

Instantly share code, notes, and snippets.

@Ajnasz
Created July 25, 2011 14:59
Show Gist options
  • Save Ajnasz/1104326 to your computer and use it in GitHub Desktop.
Save Ajnasz/1104326 to your computer and use it in GitHub Desktop.
cookies to object
var a= {};document.cookie.split(';').forEach(function(c){var b = c.split('=');a[b[0]]=b[1];});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment