https://github.com/jaredhanson/utils-merge
merge() utility function
https://github.com/jaredhanson/utils-merge
Last synced: 8 months ago
JSON representation
merge() utility function
- Host: GitHub
- URL: https://github.com/jaredhanson/utils-merge
- Owner: jaredhanson
- License: mit
- Created: 2013-07-11T18:43:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T09:58:57.000Z (about 3 years ago)
- Last Synced: 2025-05-05T00:06:54.559Z (8 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 70
- Watchers: 4
- Forks: 18
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# utils-merge
Merges the properties from a source object into a destination object.
---
Advertisement
Learn and Understand NodeJS
Dive deep under the hood of NodeJS. Learn V8, Express, the MEAN stack, core Javascript concepts, and more.
---
Status:
[](https://www.npmjs.com/package/utils-merge)
[](https://travis-ci.org/jaredhanson/utils-merge)
[](https://codeclimate.com/github/jaredhanson/utils-merge)
[](https://coveralls.io/r/jaredhanson/utils-merge)
[](https://david-dm.org/jaredhanson/utils-merge)
## Install
```bash
$ npm install utils-merge
```
## Usage
```javascript
var a = { foo: 'bar' }
, b = { bar: 'baz' };
merge(a, b);
// => { foo: 'bar', bar: 'baz' }
```
## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2013-2017 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>