JavaScript Get Joken от строки запроса
const urlParams = new URLSearchParams(queryString);
Scary Stork
const urlParams = new URLSearchParams(queryString);
const queryString = window.location.search;
console.log(queryString);
// ?product=shirt&color=blue&newuser&size=m