URLSearchParams
interface URLSearchParams {
[[Symbol.iterator]](): IterableIterator<[string, string]>;
append(name: string, value: string): void;
delete(name: string): void;
entries(): IterableIterator<[string, string]>;
forEach(callbackfn: (
value: string,
key: string,
parent: URLSearchParams,
) => void, thisArg?: any): void;get(name: string): string | null;
getAll(name: string): string[];
has(name: string): boolean;
keys(): IterableIterator<string>;
set(name: string, value: string): void;
sort(): void;
toString(): string;
values(): IterableIterator<string>;
}var URLSearchParams: {
prototype: URLSearchParams;
new (init?: ): URLSearchParams;
toString(): string;
};§Methods
§
append(name: string, value: string): void
[src]Appends a specified key/value pair as a new search parameter.
§
delete(name: string): void
[src]Deletes the given search parameter, and its associated value, from the list of all search parameters.
§
entries(): IterableIterator<[string, string]>
[src]Returns an array of key, value pairs for every entry in the search params.
§
forEach(callbackfn: (
[src]value: string,
key: string,
parent: URLSearchParams,
) => void, thisArg?: any): void§
get(name: string): string | null
[src]Returns the first value associated to the given search parameter.
§
getAll(name: string): string[]
[src]Returns all the values association with a given search parameter.
§
set(name: string, value: string): void
[src]Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.