Travis build: 598
This commit is contained in:
@ -2573,12 +2573,7 @@ Returns the maximum value out of two or more numbers/arrays.
|
||||
Use `Math.max()` combined with the spread operator (`...`) to get the maximum value in the array.
|
||||
|
||||
```js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const max = (...arr) => Math.max(...[].concat(...arr);
|
||||
const max = (...arr) => Math.max(...[].concat(...arr));
|
||||
```
|
||||
|
||||
<details>
|
||||
|
||||
@ -1216,12 +1216,7 @@ lcm([1, 3, 4], 5); // 60
|
||||
</div></div><br/><div class="card fluid"><div class="section double-padded"><h3 id="max">max</h3></div><div class="section double-padded">
|
||||
<p>Returns the maximum value out of two or more numbers/arrays.</p>
|
||||
<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);
|
||||
<pre><code class="language-js">const max = (...arr) => Math.max(...[].concat(...arr));
|
||||
</code></pre>
|
||||
<pre><code class="language-js">max([10, 1, 5]); // 10
|
||||
</code></pre>
|
||||
|
||||
Reference in New Issue
Block a user