up.Params.prototype.toObject()

Instance 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

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

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

Return value

Type: Object