Deletes the given search parameter, and its associated value, from the list of all search parameters.
Returns an ES6 Iterator
over each of the name-value pairs in the query.
Each item of the iterator is a JavaScript Array
. The first item of the Array
is the name
, the second item of the Array
is the value
.
Alias for urlSearchParams[@@iterator]()
.
Returns the first value associated to the given search parameter.
Returns all the values association with a given search parameter.
Returns a Boolean indicating if such a search parameter exists.
Returns an ES6 Iterator
over the names of each name-value pair.
const params = new URLSearchParams('foo=bar&foo=baz');
for (const name of params.keys()) {
console.log(name);
}
// Prints:
// foo
// foo
Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
Returns an ES6 Iterator
over the values of each name-value pair.
Generated using TypeDoc
Appends a specified key/value pair as a new search parameter.