The toString()
method of the URLSearchParams
interface returns a query string suitable for use in a URL.
Note: This method returns the query string without the question mark. This is different from Location.search
, HTMLAnchorElement.search
, and URL.search
, which all include the question mark.
Note: This feature is available in Web Workers