Open this example in the interactive library
Source code
console.log(new URLSearchParams("tag=js&tag=web").getAll("tag"));
Sample output
[ 'js', 'web' ]

Read repeated query values. A self-contained example using the JavaScript runtime.
Open this example in the interactive library
console.log(new URLSearchParams("tag=js&tag=web").getAll("tag"));
[ 'js', 'web' ]