Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all Query string values #8

Open
201flaviosilva opened this issue Feb 1, 2023 · 0 comments
Open

Get all Query string values #8

201flaviosilva opened this issue Feb 1, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@201flaviosilva
Copy link
Member

https://stackoverflow.com/a/54220243/13356573

const params = new URLSearchParams(window.location.search);

const paramsObj = Array.from(params.keys()).reduce(
  (acc, val) => ({ ...acc, [val]: params.get(val) }),
  {}
);
@201flaviosilva 201flaviosilva added the enhancement New feature or request label Feb 1, 2023
@201flaviosilva 201flaviosilva added this to the 1.3 - Tests milestone Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant