Edit this page

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

This feature is experimental. Please share your experiences so we know what to keep or change.

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.