Open kapouer opened 3 years ago
This would avoid many pitfalls of url.parse:
const obj = new URL(str); obj.searchParams.set("test", 1); obj.href
works as expected, without surprises...
This would avoid many pitfalls of url.parse:
works as expected, without surprises...