Class ImmutableURLSearchParams
Constructors
constructor
- new ImmutableURLSearchParams(init?: string[][] | Record<string, string> | string | URLSearchParams): ImmutableURLSearchParams
-
Parameters
-
Optional init: string[][] | Record<string, string> | string | URLSearchParams
Methods
[Symbol.iterator]
- [Symbol.iterator](): IterableIterator<[string, string]>
-
Returns IterableIterator<[string, string]>
append
-
Parameters
-
key: string
-
value: string
entries
- entries(): IterableIterator<[string, string]>
-
Returns IterableIterator<[string, string]>
forEach
- forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void
-
Parameters
-
callbackfn: (value: string, key: string, parent: URLSearchParams) => void
-
- (value: string, key: string, parent: URLSearchParams): void
-
Parameters
-
value: string
-
key: string
-
parent: URLSearchParams
Returns void
-
Optional thisArg: any
Returns void
get
- get(name: string): null | string
-
Parameters
Returns null | string
getAll
- getAll(name: string): string[]
-
Parameters
Returns string[]
has
- has(name: string): boolean
-
Parameters
Returns boolean
keys
- keys(): IterableIterator<string>
-
Returns IterableIterator<string>
set
-
Parameters
-
key: string
-
value: string
values
- values(): IterableIterator<string>
-
Returns IterableIterator<string>
Identical to the native URLSearchParams interface except that all mutable methods instead return a new
ImmutableURLSearchParams
.