Travis build: 231

This commit is contained in:
30secondsofcode
2018-08-15 06:34:35 +00:00
parent a0aa4f89e6
commit ae3648167b
3 changed files with 9 additions and 4 deletions

View File

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