Skip to content

Instantly share code, notes, and snippets.

@antonybudianto
Created March 4, 2019 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonybudianto/ad372af5b723a19618b9a69c5a9ba0ba to your computer and use it in GitHub Desktop.
Save antonybudianto/ad372af5b723a19618b9a69c5a9ba0ba to your computer and use it in GitHub Desktop.
location.search.substring(1).split('&').map(p => p.split('=')).reduce((a,c) => {
a[c[0]] = c[1]
return a
}, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment