Travis build: 1081

This commit is contained in:
30secondsofcode
2018-01-08 20:01:19 +00:00
parent 7ebbe5936b
commit f7484d30cc
4 changed files with 44 additions and 5 deletions

View File

@ -9,9 +9,9 @@ const longestItem = (...vals) => [...vals].sort((a, b) => b.length - a.length)[0
```
```js
longestItem ('this', 'is', 'a', 'testcase'); // 'testcase'
longestItem (...['a', 'ab', 'abc']); // 'abc'
longestItem (...['a', 'ab', 'abc'], 'abcd'); // 'abcd'
longestItem('this', 'is', 'a', 'testcase'); // 'testcase'
longestItem(...['a', 'ab', 'abc']); // 'abc'
longestItem(...['a', 'ab', 'abc'], 'abcd'); // 'abcd'
longestItem([1, 2, 3], [1, 2], [1, 2, 3, 4, 5]); // [1, 2, 3, 4, 5]
longestItem([1, 2, 3], 'foobar'); // 'foobar'
```