Created
May 13, 2020 21:11
-
-
Save iceener/d25a23c4179d534d18ad952197b0ff96 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
// Get URL params | |
const getParameters = () => | |
window.location.search | |
.slice(1) | |
.url.split('&') | |
.reduce(function _reduce(/*Object*/ obj, /*String*/ str) { | |
str = str.split('='); | |
obj[str[0]] = decodeURIComponent(str[1]); | |
return obj; | |
}, {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment