set

operator fun set(key: String, value: String)(source)

Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.

MDN Reference