---
name: "up.util.assign"
area: "API"
kind: "JavaScript function"
parent: "up.util module"
visibility: "deprecated"
url: "https://unpoly.com/api/up.util.assign"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.util module](https://unpoly.com/api/up.util.md)</nav>

# up.util.assign(target, ...sources)

**This feature has been deprecated**. Use [`Object.assign()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Merge the own properties of one or more `sources` into the `target` object.

---

## Parameters {#parameters}

### target {#target}

(required)

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

### ...sources {#sources}

(required)

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

