ReadonlysizeThe size read-only property of the URLSearchParams interface indicates the total number of search parameter entries.
The append() method of the URLSearchParams interface appends a specified key/value pair as a new search parameter.
The delete() method of the URLSearchParams interface deletes specified parameters and their associated value(s) from the list of all search parameters.
Optionalvalue: stringOptionalthisArg: anyThe get() method of the URLSearchParams interface returns the first value associated to the given search parameter.
The getAll() method of the URLSearchParams interface returns all the values associated with a given search parameter as an array.
The has() method of the URLSearchParams interface returns a boolean value that indicates whether the specified parameter is in the search parameters.
Optionalvalue: stringThe set() method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
The URLSearchParams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.
The
URLSearchParamsinterface defines utility methods to work with the query string of a URL.MDN Reference