let x = "Categories=All&Search=Filus";
const x = "Categories=All&Search=Filus";
const parseQueryString = str => str.split('&').reduce((acc, el) => {
const [key, value] = el.split('=');
acc[key] = value;
return acc;
}, {});
const params = parseQueryString(x);
console.log(params); // { Categories: "All", Search: "Filus" }
const values = Object.values(params);
console.log(values); // [ "All", "Filus" ]
let x = "Categories=All&Search=Filus";
let params = new URLSearchParams(x);
console.log(params.get('Categories')); // All