Skip to main content
method URLSearchParams.prototype.getAll

Returns all the values associated with a given search parameter as an array.

searchParams.getAll('name');

Parameters

name: string

Returns

string[]