up.Params.prototype.add(name, value)
Instance method
Adds a new entry with the given name and value.
An up.Params instance can hold multiple entries with the same name.
To overwrite all existing entries with the given name, use up.Params#set() instead.
Example
let params = new up.Params()
params.add('foo', 'fooValue')
let foo = params.get('foo')
// foo is now 'fooValue'
Parameters
name
required
The name of the new entry.
Type: string
value
required
The value of the new entry.
Type: any