Travis build: 684

This commit is contained in:
30secondsofcode
2018-10-25 10:28:14 +00:00
parent e44800555f
commit fb76573a43
4 changed files with 4 additions and 8 deletions

View File

@ -7,8 +7,7 @@ Returns `undefined` if no arguments are provided.
Use `Array.prototype.reduce()`, comparing the `length` of objects to find the longest one.
```js
const longestItem = (...vals) =>
vals.reduce((a, x) => (x.length > a.length ? x : a));
const longestItem = (...vals) => vals.reduce((a, x) => (x.length > a.length ? x : a));
```
```js