Update README.md

This commit is contained in:
Aaron Jensen 2015-08-09 22:03:48 -07:00
parent e5836877a6
commit 6511166806

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