Travis build: 1041
This commit is contained in:
336
docs/index.html
336
docs/index.html
File diff suppressed because one or more lines are too long
@ -15,5 +15,5 @@ const gcd = (...arr) => {
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
gcd(8, 36); // 4
|
gcd(8, 36); // 4
|
||||||
gcd(...[12,8,32]); // 4
|
gcd(...[12, 8, 32]); // 4
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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('')`.
|
Combine characters to get a string using `String.join('')`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
||||||
const reverseString = str =>
|
const reverseString = str =>
|
||||||
[..str]
|
[..str]
|
||||||
.reverse()
|
.reverse()
|
||||||
|
|||||||
@ -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('')`.
|
Use the spread operator (`...`), `Array.sort()` and `String.localeCompare()` to sort the characters in `str`, recombine using `String.join('')`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const sortCharactersInString = str =>
|
const sortCharactersInString = str => [...str].sort((a, b) => a.localeCompare(b)).join('');
|
||||||
[...str]
|
|
||||||
.sort((a, b) => a.localeCompare(b))
|
|
||||||
.join('');
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
@ -123,7 +123,6 @@ readFileLines:node,array,string
|
|||||||
redirect:browser,url
|
redirect:browser,url
|
||||||
reducedFilter:array
|
reducedFilter:array
|
||||||
remove:array
|
remove:array
|
||||||
repeatString:string
|
|
||||||
reverseString:string,array
|
reverseString:string,array
|
||||||
RGBToHex:utility
|
RGBToHex:utility
|
||||||
round:math
|
round:math
|
||||||
|
|||||||
Reference in New Issue
Block a user