--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
35
node_modules/deep-assign/readme.md
generated
vendored
Normal file
35
node_modules/deep-assign/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# deep-assign [](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)
|
||||
Loading…
Reference in a new issue