convert js object to search params code example
Example: js object to querystring
const params = {foo:"Hi", bar:"there"}
const queryString = new URLSearchParams(params).toString();
console.log(queryString);
const params = {foo:"Hi", bar:"there"}
const queryString = new URLSearchParams(params).toString();
console.log(queryString);