Optional
init: string | URLSearchParams | Record<string, string> | string[][]Readonly
sizeSorts all key/value pairs contained in this object in place and returns
undefined
. The sort order is according to unicode code points of the
keys. This method uses a stable sorting algorithm (i.e. the relative
order between key/value pairs with equal keys will be preserved).
Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
const params = new URLSearchParams({ foo: '1', bar: '2' });
// Add a second foo parameter.
params.append("foo", 4);
params.toString();
// Returns "foo=1&bar=2&foo=4"
https://developer.mozilla.org/docs/Web/API/URLSearchParams/toString
Generated using TypeDoc
MDN Reference