set method

void set(
  1. String name,
  2. String value
)

The set() method of the URLSearchParams interface 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.

Implementation

external void set(
  String name,
  String value,
);