Travis build: 1179

This commit is contained in:
30secondsofcode
2018-01-11 10:28:20 +00:00
parent 66a78ee7b5
commit 84fcddd42c
7 changed files with 109 additions and 6 deletions

View File

@ -9,5 +9,5 @@ const sumBy = (arr, fn) => arr.map(fn).reduce((acc, val) => acc + val, 0);
```
```js
sumBy([{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }], o => o.n); // 20
sumBy([{ n: 4 }, { n: 2 }, { n: 8 }, { n: 6 }], o => o.n); // 20
```