I want to create url value which have multiple key values in JavaScript.
If I do like this,
const url = new URL('http://example.com/hoge');
url.search = new URLSearchParams(['a': ['b', 'c'], 'd': 'e']);
console.log(url.href);
I achieved
http://example.com/hoge?a=b,c&d=e
But I want to have is
http://example.com/hoge?a=b&a=c&d=e
How can I get it?
a=b&a=c. while reading the query value is more annoying