Interface URLSearchParams
interface URLSearchParams {
size: number;
"[iterator]"(): URLSearchParamsIterator<[string, string]>;
append(name: string, value: string): void;
delete(name: string, value?: string): void;
entries(): URLSearchParamsIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: URLSearchParams,
) => void,
thisArg?: any,
): void;
get(name: string): string;
getAll(name: string): string[];
has(name: string, value?: string): boolean;
keys(): URLSearchParamsIterator<string>;
set(name: string, value: string): void;
sort(): void;
toString(): string;
values(): URLSearchParamsIterator<string>;
}
size: number;
"[iterator]"(): URLSearchParamsIterator<[string, string]>;
append(name: string, value: string): void;
delete(name: string, value?: string): void;
entries(): URLSearchParamsIterator<[string, string]>;
forEach(
callbackfn: (
value: string,
key: string,
parent: URLSearchParams,
) => void,
thisArg?: any,
): void;
get(name: string): string;
getAll(name: string): string[];
has(name: string, value?: string): boolean;
keys(): URLSearchParamsIterator<string>;
set(name: string, value: string): void;
sort(): void;
toString(): string;
values(): URLSearchParamsIterator<string>;
}
Methods
[iterator]
- "[iterator]"(): URLSearchParamsIterator<[string, string]>
Returns URLSearchParamsIterator<[string, string]>
append
delete
entries
- entries(): URLSearchParamsIterator<[string, string]>
Returns an array of key, value pairs for every entry in the search params.
Returns URLSearchParamsIterator<[string, string]>
forEach
- forEach(
callbackfn: (
value: string,
key: string,
parent: URLSearchParams,
) => void,
thisArg?: any,
): void Parameters
- callbackfn: (value: string, key: string, parent: URLSearchParams) => void
Optional
thisArg: any
Returns void
get
getAll
has
keys
- keys(): URLSearchParamsIterator<string>
Returns a list of keys in the search params.
Returns URLSearchParamsIterator<string>
set
sort
toString
values
- values(): URLSearchParamsIterator<string>
Returns a list of values in the search params.
Returns URLSearchParamsIterator<string>
MDN Reference