Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | # utils-merge
|
---|
| 2 |
|
---|
| 3 | [![Version](https://img.shields.io/npm/v/utils-merge.svg?label=version)](https://www.npmjs.com/package/utils-merge)
|
---|
| 4 | [![Build](https://img.shields.io/travis/jaredhanson/utils-merge.svg)](https://travis-ci.org/jaredhanson/utils-merge)
|
---|
| 5 | [![Quality](https://img.shields.io/codeclimate/github/jaredhanson/utils-merge.svg?label=quality)](https://codeclimate.com/github/jaredhanson/utils-merge)
|
---|
| 6 | [![Coverage](https://img.shields.io/coveralls/jaredhanson/utils-merge.svg)](https://coveralls.io/r/jaredhanson/utils-merge)
|
---|
| 7 | [![Dependencies](https://img.shields.io/david/jaredhanson/utils-merge.svg)](https://david-dm.org/jaredhanson/utils-merge)
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | Merges the properties from a source object into a destination object.
|
---|
| 11 |
|
---|
| 12 | ## Install
|
---|
| 13 |
|
---|
| 14 | ```bash
|
---|
| 15 | $ npm install utils-merge
|
---|
| 16 | ```
|
---|
| 17 |
|
---|
| 18 | ## Usage
|
---|
| 19 |
|
---|
| 20 | ```javascript
|
---|
| 21 | var a = { foo: 'bar' }
|
---|
| 22 | , b = { bar: 'baz' };
|
---|
| 23 |
|
---|
| 24 | merge(a, b);
|
---|
| 25 | // => { foo: 'bar', bar: 'baz' }
|
---|
| 26 | ```
|
---|
| 27 |
|
---|
| 28 | ## License
|
---|
| 29 |
|
---|
| 30 | [The MIT License](http://opensource.org/licenses/MIT)
|
---|
| 31 |
|
---|
| 32 | Copyright (c) 2013-2017 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
|
---|
| 33 |
|
---|
| 34 | <a target='_blank' rel='nofollow' href='https://app.codesponsor.io/link/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/utils-merge'> <img alt='Sponsor' width='888' height='68' src='https://app.codesponsor.io/embed/vK9dyjRnnWsMzzJTQ57fRJpH/jaredhanson/utils-merge.svg' /></a>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.