Edit this page

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

This feature is experimental. It may be changed or removed in a future version.

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 string

The name of the entry to set.

value any

The new value of the entry.