Travis build: 575
This commit is contained in:
@ -2575,6 +2575,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
|
||||
```js
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
```
|
||||
|
||||
|
||||
@ -1218,6 +1218,7 @@ lcm([1, 3, 4], 5); // 60
|
||||
<p>Use <code>Math.max()</code> combined with the spread operator (<code>...</code>) to get the maximum value in the array.</p>
|
||||
<pre><code class="language-js">
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
</code></pre>
|
||||
<pre><code class="language-js">max([10, 1, 5]); // 10
|
||||
|
||||
@ -7,6 +7,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
|
||||
```js
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user