How to get query string parameters as an object – JavaScript
If you want to access the location.search parameters with JavaScript and have a key / value object returned, here’s a snippet for you: How to use it Output Jest Unit Tests I even have some unit tests for you, using Jest