Constructors
constructor
- new URLSearchParams(init?): URLSearchParams
Parameters
Optional
init: string | URLSearchParams | Record<string, string> | [key: string, value: string][]
Accessors
size
- get size(): number
Returns number
Methods
[iterator]
- [iterator](): IterableIterator<[key: string, value: string]>
Returns IterableIterator<[key: string, value: string]>
append
- append(name, value): void
Parameters
- name: string
- value: string
Returns void
delete
- delete(name): void
Returns void
entries
- entries(): IterableIterator<[key: string, value: string]>
Returns IterableIterator<[key: string, value: string]>
forEach
- forEach<This>(callback, thisArg?): void
Parameters
- callback: ((this, value, key, parent) => void)
- (this, value, key, parent): void
Returns void
Optional
thisArg: This
Returns void
get
- get(name): string
Returns string
getAll
- getAll(name): string[]
Returns string[]
has
- has(name): boolean
Returns boolean
keys
- keys(): IterableIterator<string>
Returns IterableIterator<string>
set
- set(name, value): void
Parameters
- name: string
- value: string
Returns void
toString
- toString(): string
Returns string
values
- values(): IterableIterator<string>
Returns IterableIterator<string>
Returns an array of key, value pairs for every entry in the search params.