Travis build: 499

This commit is contained in:
Travis CI
2017-12-29 11:48:13 +00:00
parent 05141e5e3c
commit 5a257a8015
3 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -1827,6 +1827,7 @@ Use <code>Number()</code> to check if the coercion holds.</p>
const max = (...arr) =&gt; Math.max(...[].concat(...arr);
</code></pre>
<pre><code class="language-js">max([10, 1, 5]); // 10

View File

@ -11,6 +11,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
const max = (...arr) => Math.max(...[].concat(...arr);
```