Skip to content

Commit

Permalink
Merge pull request #34 from blaise-io/patch-1
Browse files Browse the repository at this point in the history
Add an example to the readme
  • Loading branch information
ljharb committed Jul 5, 2015
2 parents 148e727 + f167d79 commit ea454c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -20,6 +20,13 @@ npm install extend

*Extend one object with one or more others, returning the modified object.*

**Example:**

``` js
var extend = require('extend');
extend(targetObject, object1, object2);
```

Keep in mind that the target object will be modified, and will be returned from extend().

If a boolean true is specified as the first argument, extend performs a deep copy, recursively copying any objects it finds. Otherwise, the copy will share structure with the original object(s).
Expand Down

0 comments on commit ea454c3

Please sign in to comment.