Travis build: 499
This commit is contained in:
13
README.md
13
README.md
@ -4090,7 +4090,8 @@ const average = (...arr) => [].concat(...arr).reduce((acc, val) => acc + val, 0)
|
||||
average([1, 2, 3]); // 2
|
||||
```
|
||||
|
||||
[⬆ back to top](#table-of-contents)
|
||||
<br>[⬆ back to top](#table-of-contents)
|
||||
|
||||
|
||||
### max
|
||||
|
||||
@ -4105,6 +4106,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
|
||||
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
```
|
||||
|
||||
@ -4112,7 +4114,8 @@ const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
max([10, 1, 5]); // 10
|
||||
```
|
||||
|
||||
[⬆ back to top](#table-of-contents)
|
||||
<br>[⬆ back to top](#table-of-contents)
|
||||
|
||||
|
||||
### min
|
||||
|
||||
@ -4128,7 +4131,8 @@ const min = arr => Math.min(...[].concat(...arr));
|
||||
min([10, 1, 5]); // 1
|
||||
```
|
||||
|
||||
[⬆ back to top](#table-of-contents)
|
||||
<br>[⬆ back to top](#table-of-contents)
|
||||
|
||||
|
||||
### sum
|
||||
|
||||
@ -4144,7 +4148,8 @@ const sum = (...arr) => [].concat(...arr).reduce((acc, val) => acc + val, 0);
|
||||
sum([1, 2, 3, 4]); // 10
|
||||
```
|
||||
|
||||
[⬆ back to top](#table-of-contents)
|
||||
<br>[⬆ back to top](#table-of-contents)
|
||||
|
||||
|
||||
## Credits
|
||||
|
||||
|
||||
@ -1827,6 +1827,7 @@ Use <code>Number()</code> to check if the coercion holds.</p>
|
||||
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
</code></pre>
|
||||
<pre><code class="language-js">max([10, 1, 5]); // 10
|
||||
|
||||
@ -11,6 +11,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
|
||||
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user