Edit this page

up.Params up.Params.prototype.set(name, value)
Instance method

Sets the value for the entry with given name.

An up.Params instance can hold multiple entries with the same name. All existing entries with the given name are deleted before the new entry is set. To add a new entry even if the name is taken, use up.Params#add().


Parameters

name
required

The name of the entry to set.

string
value
required

The new value of the entry.

any