Fix example in readme

This commit is contained in:
Aaron Jensen 2015-08-06 20:13:46 -07:00
parent 556ada11f3
commit 59ec770a88

View File

@ -47,6 +47,7 @@ var person = {
};
var inc = function(i) { return i + 1; }
var eq = function(x) { return function(y) { return x == y } };
var newPerson = u({
// Change first name
@ -56,7 +57,7 @@ var newPerson = u({
// Update email
email: 'bob@example.com',
// Remove todo
todo: u.reject('Be funny'),
todo: u.reject(eq('Be funny')),
// Increment version
version: inc
}, person);