Last active
June 21, 2016 02:26
-
-
Save ttam/774aa2dcbdb920b0509120c906eb7543 to your computer and use it in GitHub Desktop.
This file contains 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
var GET = document.location.search.split('&').reduce(function(obj, piece) { | |
[, key, value] = piece.match(/([_a-z]+)=(.+)/); | |
obj[key] = value; | |
return obj; | |
}, {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment