Update README.md
This commit is contained in:
parent
af623a5be4
commit
62f12884fb
@ -281,6 +281,8 @@ expect(result).toEqual([1, 2, 3]);
|
|||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
function increment(x) { return x + 1; }
|
||||||
|
|
||||||
var result = u.map(increment, { a: 0, b: 1, c: 2 });
|
var result = u.map(increment, { a: 0, b: 1, c: 2 });
|
||||||
|
|
||||||
expect(result).toEqual({ a: 1, b: 2, c: 3 });
|
expect(result).toEqual({ a: 1, b: 2, c: 3 });
|
||||||
|
Loading…
Reference in New Issue
Block a user