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' } });
```
@ -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 });
```