Travis build: 1041

This commit is contained in:
30secondsofcode
2018-01-05 14:41:29 +00:00
parent 21b5cdfec6
commit a9246df780
6 changed files with 2431 additions and 2990 deletions

968
README.md

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -15,5 +15,5 @@ const gcd = (...arr) => {
```js
gcd(8, 36); // 4
gcd(...[12,8,32]); // 4
gcd(...[12, 8, 32]); // 4
```

View File

@ -6,6 +6,7 @@ Use the spread operator (`...`) and `Array.reverse()` to reverse the order of th
Combine characters to get a string using `String.join('')`.
```js
const reverseString = str =>
[..str]
.reverse()

View File

@ -5,10 +5,7 @@ Alphabetically sorts the characters in a string.
Use the spread operator (`...`), `Array.sort()` and `String.localeCompare()` to sort the characters in `str`, recombine using `String.join('')`.
```js
const sortCharactersInString = str =>
[...str]
.sort((a, b) => a.localeCompare(b))
.join('');
const sortCharactersInString = str => [...str].sort((a, b) => a.localeCompare(b)).join('');
```
```js

View File

@ -123,7 +123,6 @@ readFileLines:node,array,string
redirect:browser,url
reducedFilter:array
remove:array
repeatString:string
reverseString:string,array
RGBToHex:utility
round:math