# deep-assign

> Recursive Object.assign()

Latest version **3.0.0** (published 2018-11-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install deep-assign
pnpm add deep-assign
yarn add deep-assign
bun add deep-assign
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2018-11-08 |
| First published | 2015-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/deep-assign) |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 245 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | object, obj, assign, extend, properties, merge, clone, copy, mixin, deep, recursive, key, keys, values, prop, properties |

## Links

- npm: https://www.npmjs.com/package/deep-assign
- Repository: https://github.com/sindresorhus/deep-assign
- Homepage: https://github.com/sindresorhus/deep-assign#readme
- Issues: https://github.com/sindresorhus/deep-assign/issues
- npm.io page: https://npm.io/package/deep-assign

## Dependencies (1)

- [is-obj](https://npm.io/package/is-obj.md) ^1.0.0

## Recent versions

- 3.0.0 (latest) — 2018-11-08
- 2.0.0 — 2015-10-20
- 1.0.0 — 2015-09-14

## README

# deep-assign [![Build Status](https://travis-ci.org/sindresorhus/deep-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/deep-assign)

> Recursive [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)


## Install

```
$ npm install --save deep-assign
```


## Usage

```js
var deepAssign = require('deep-assign');

deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
//=> {a: {b: 1, c: 3}}
```


### deepAssign(target, source, [source, ...])

Recursively assigns own enumerable properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.


## Related

- [object-assign](https://github.com/sindresorhus/object-assign) - ES2015 Object.assign() ponyfill


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

---
_Source: https://npm.io/package/deep-assign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
