Interface URLSearchParams
Methods
append
- append(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
delete
- delete(name: string): void
-
Parameters
Returns void
forEach
- forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void
-
Parameters
-
callbackfn: (value: string, key: string, parent: URLSearchParams) => void
-
-
Parameters
-
value: string
-
key: string
-
Returns void
-
Optional thisArg: any
Returns void
get
- get(name: string): string | null
-
Parameters
Returns string | null
getAll
- getAll(name: string): string[]
-
Parameters
Returns string[]
has
- has(name: string): boolean
-
Parameters
Returns boolean
set
- set(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
sort
-
Returns void
Appends a specified key/value pair as a new search parameter.