Update README.md

main
Aaron Jensen 2015-08-09 22:03:48 -07:00
parent e5836877a6
commit 6511166806
1 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ var person = {
}
};
var result = u({ name: { first: 'Susan' } }, person});
var result = u({ name: { first: 'Susan' } }, person);
expect(result).toEqual({ name: { first: 'Susan', last: 'West' } });
```
@ -145,8 +145,8 @@ expect(result).toEqual({ scores: { team1: 0, team2: 1 } });
```js
function increment(i) { return i + 1; }
var addOne = u({ age: increment });
var result = addOne({ name: 'Shannon Barnes', age: 62 });
var addOneYear = u({ age: increment });
var result = addOneYear({ name: 'Shannon Barnes', age: 62 });
expect(result).toEqual({ name: 'Shannon Barnes', age: 63 });
```
@ -407,4 +407,4 @@ MIT ©2015 [Substantial](http://substantial.com)
[icepick]: https://github.com/aearly/icepick
[React.addons.update]: https://facebook.github.io/react/docs/update.html
[tests]: https://github.com/substantial/updeep/blob/master/test/index.js
[currying]: http://www.datchley.name/currying-vs-partial-application/
[currying]: http://www.datchley.name/currying-vs-partial-application/