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