1if (typeof URLSearchParams !== 'undefined') {
2 const params = new URLSearchParams('param1=1¶m2=2¶m3=3')
3
4 console.log(params.toString())
5
6 params.delete('param2')
7
8 console.log(params.toString())
9
10} else {
11 console.log(`Your browser ${navigator.appVersion} does not support URLSearchParams`)
12}