URLSearchParams
Description
A utility for parsing and formatting the query string in a URL.
Constructor
new URLSearchParams(search)
Creates an instance of URLSearchParams.
Methods
get(name)
Gets the value of a name.
getAll(name)
Retreives all values with a name.
set(name, value)
Sets the value or values of a name.
toObject()
Makes an object with the key-value pairs
toString()
Composes the query string.