Edit this page

up.Params up.Params.prototype.toObject()
Class method

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

Returns an object representation of this up.Params instance.

The returned value is a simple JavaScript object with properties that correspond to the key/values in the given params.

Example

var params = new up.Params('foo=bar&baz=bam')
var object = params.toObject()

// object is now: {
//   foo: 'bar',
//   baz: 'bam'
// ]

Return value