Merge pull request #25 from substantial/simplify-map-documentation-example

remove unnecessary function from docs example
This commit is contained in:
Aaron Jensen 2015-08-13 06:52:25 -07:00
commit 7d03d350be

View File

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