Edit this page

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

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

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