Skip to content

Commit

Permalink
Fix doc typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Swizz committed Nov 11, 2017
1 parent 55dc24d commit a0d8eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -253,9 +253,9 @@ diff checking that allow you to reconscruct an array with ease.
const past = [1, 2, 3]
const future = [1, 2, 3, 4]

const patch = diff(past, future)
const present = diff(past, future)

const present = Array.from({ ...past, ...patch.do }
const future = Array.from({ ...past, ...present.do })
// present: (4)[1, 2, 3, 4]
```
Expand Down

0 comments on commit a0d8eab

Please sign in to comment.