Merge pull request #25 from substantial/simplify-map-documentation-example
remove unnecessary function from docs example
This commit is contained in:
commit
7d03d350be
@ -281,14 +281,14 @@ expect(result).toEqual([1, 2, 3]);
|
||||
```
|
||||
|
||||
```js
|
||||
function increment(x) { return x + 1; }
|
||||
|
||||
var result = u.map(increment, { a: 0, b: 1, c: 2 });
|
||||
|
||||
expect(result).toEqual({ a: 1, b: 2, c: 3 });
|
||||
```
|
||||
|
||||
```js
|
||||
function increment(x) { return x + 1; }
|
||||
|
||||
var result = u.map({ a: 100 }, [{ a: 0 }, { a: 1 }]);
|
||||
|
||||
expect(result).toEqual([{ a: 100 }, { a: 100 }]);
|
||||
|
Loading…
Reference in New Issue
Block a user