Travis build: 1081
This commit is contained in:
@ -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'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user