@NathanCruzAug 12, 2022 — #The most modern and effective way in terms of performance is by using Javascript's Proxy: const params = new Proxy(new URLSearchParams(window.location.search), { get: (urlParams, queryStringKey) => urlParams.get(queryStringKey), }); //to get the value of the key "my_key", just use params.my_key let my_value = params.my_key
reply?
×
Success!
Help @ReilyAcevedo spread the word by sharing this article on Twitter...