Skip to content

Commit

Permalink
updated readme again :(
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-iglesias committed Sep 30, 2016
1 parent d056a01 commit 4342cae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm install --save subtractly

## What is this magic? How does it work?

1. Subtracting two objects
* Subtracting two objects
```
let obj1 = {foo: 'bar', baz: 'blob'},
obj2 = {baz: 'foobar'};
Expand All @@ -22,15 +22,15 @@ subtractly(obj1, obj2);
// => [{ foo: 'bar' }]
```

2. Deleting properties from an object by passing an array of properties to be removed.
* Deleting properties from an object by passing an array of properties to be removed.
```
let obj1 = {foo: '123', bar: '456', baz: '789'},
subtractly(obj1, ['foo', 'bar']);
// => [{ baz: '789' }]
```

3. Diffing arrays
* Diffing arrays
```
let arr1 = [1,2,3,4,5],
arr2 = [2,3];
Expand All @@ -39,13 +39,13 @@ subtractly(arr1, arr2);
// => [1,4,5]
```

4. Removing all instances of a substring from a string
* Removing all instances of a substring from a string
```
subtractly('mississippi', 'i');
// => msssspp
```

5. Subtracting numbers is difficult... subtractly can handle that as well ;)
* Subtracting numbers is difficult... subtractly can handle that as well ;)
```
subtractly(52, 10);
// => 42
Expand Down

0 comments on commit 4342cae

Please sign in to comment.