let params = new URLSearchParams([["first", "hello"],["second", "world"]]).toString();
console.log(params);
const url = new URL('https://example.com/?firstkey=firstvalue&secondkey=secondvalue');
let searchParams = Array.from(url.searchParams.entries());
console.log(searchParams);