Created
March 4, 2019 08:57
-
-
Save antonybudianto/ad372af5b723a19618b9a69c5a9ba0ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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