Travis build: 391

This commit is contained in:
Travis CI
2017-12-28 08:30:19 +00:00
parent 294a22ea5e
commit 203edf9ba2
141 changed files with 1389 additions and 1044 deletions

View File

@ -6,9 +6,12 @@ Split the string using `split('')`, `Array.sort()` utilizing `localeCompare()`,
```js
const sortCharactersInString = str =>
str.split('').sort((a, b) => a.localeCompare(b)).join('');
str
.split('')
.sort((a, b) => a.localeCompare(b))
.join('');
```
```js
sortCharactersInString('cabbage') // 'aabbceg'
sortCharactersInString('cabbage'); // 'aabbceg'
```