Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
msfidelis committed Nov 7, 2017
1 parent 300c72f commit 262ddf7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,27 @@ const object = {
raj.selectFromObject(object, ['name', 'id']) // {name: 'hello', id: 3123423}
```

### Copy Objects

```javascript
const obj = {a: 'b', c: 'd'};
const copy = raj.copy(obj);
```

### Merge Objects

```javascript
const object1 = { food: 'pizza', car: 'ford' };
const object2 = { animal: 'dog' };

const object3 = raj.merge(object1, object2);

console.log(object3);

// { food: 'pizza', car: 'ford', animal: 'dog' }
```


### Extend objects values

```javascript
Expand Down

0 comments on commit 262ddf7

Please sign in to comment.