---
name: "up.Params.prototype.toObject"
area: "API"
kind: "Instance method"
parent: "up.Params class"
visibility: "experimental"
url: "https://unpoly.com/api/up.Params.prototype.toObject"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.Params class](https://unpoly.com/api/up.Params.md)</nav>

# up.Params.prototype.toObject()

**This feature is experimental**. Please [share](https://github.com/unpoly/unpoly/discussions) your experiences so we know what to keep or change.

Returns an object representation of this [`up.Params`](https://unpoly.com/api/up.Params.md) instance.

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

## Example {#example}

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

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

---

## Return value {#return-value}

Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects)

