getAll

The getAll() method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.

MDN Reference