method URLSearchParams.set
Jump to headingURLSearchParams.set(name: string,value: string,): void
Sets the value associated with a given search parameter to the given value. If there were several matching values, this method deletes the others. If the search parameter doesn't exist, this method creates it.
searchParams.set('name', 'value');
Parameters Jump to heading
Jump to headingname: string
Jump to headingvalue: string
Return Type Jump to heading
void