Last active
February 24, 2023 01:30
-
-
Save deguchi/c767ee11aaeb1e2b93d56f528d3ca4fe 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
const getQueryString = () => { | |
const params = {} | |
location.search.substring(1).split('&').forEach((param) => { | |
const [key, value] = param.split('=') | |
// @ts-ignore | |
params[key] = decodeURIComponent(value) | |
}) | |
return params | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment