You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 3 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # merge-deep [![NPM version](https://img.shields.io/npm/v/merge-deep.svg?style=flat)](https://www.npmjs.com/package/merge-deep) [![NPM monthly downloads](https://img.shields.io/npm/dm/merge-deep.svg?style=flat)](https://npmjs.org/package/merge-deep) [![NPM total downloads](https://img.shields.io/npm/dt/merge-deep.svg?style=flat)](https://npmjs.org/package/merge-deep) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/merge-deep.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/merge-deep)
  2. > Recursively merge values in a javascript object.
  3. Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
  4. ## Install
  5. Install with [npm](https://www.npmjs.com/):
  6. ```sh
  7. $ npm install --save merge-deep
  8. ```
  9. Based on [mout's](https://github.com/mout/mout) implementation of merge
  10. ## Usage
  11. ```js
  12. var merge = require('merge-deep');
  13. merge({a: {b: {c: 'c', d: 'd'}}}, {a: {b: {e: 'e', f: 'f'}}});
  14. //=> { a: { b: { c: 'c', d: 'd', e: 'e', f: 'f' } } }
  15. ```
  16. ## About
  17. <details>
  18. <summary><strong>Contributing</strong></summary>
  19. Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
  20. </details>
  21. <details>
  22. <summary><strong>Running Tests</strong></summary>
  23. Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
  24. ```sh
  25. $ npm install && npm test
  26. ```
  27. </details>
  28. <details>
  29. <summary><strong>Building docs</strong></summary>
  30. _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
  31. To generate the readme, run the following command:
  32. ```sh
  33. $ npm install -g verbose/verb#dev verb-generate-readme && verb
  34. ```
  35. </details>
  36. ### Related projects
  37. You might also be interested in these projects:
  38. * [assign-deep](https://www.npmjs.com/package/assign-deep): Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… [more](https://github.com/jonschlinkert/assign-deep) | [homepage](https://github.com/jonschlinkert/assign-deep)
  39. * [defaults-deep](https://www.npmjs.com/package/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object. | [homepage](https://github.com/jonschlinkert/defaults-deep)
  40. * [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow)
  41. * [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep)
  42. * [mixin-deep](https://www.npmjs.com/package/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. | [homepage](https://github.com/jonschlinkert/mixin-deep)
  43. * [omit-deep](https://www.npmjs.com/package/omit-deep): Recursively omit the specified key or keys from an object. | [homepage](https://github.com/jonschlinkert/omit-deep)
  44. ### Contributors
  45. | **Commits** | **Contributor** |
  46. | --- | --- |
  47. | 29 | [jonschlinkert](https://github.com/jonschlinkert) |
  48. | 4 | [doowb](https://github.com/doowb) |
  49. ### Author
  50. **Jon Schlinkert**
  51. * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
  52. * [GitHub Profile](https://github.com/jonschlinkert)
  53. * [Twitter Profile](https://twitter.com/jonschlinkert)
  54. ### License
  55. Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
  56. Released under the [MIT License](LICENSE).
  57. ***
  58. _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on July 11, 2018._