Optional
init: string | URLSearchParams | Record<string, string> | string[][]Optional
thisArg: anyReturns 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"
Generated using TypeDoc
MDN Reference