Travis build: 491

This commit is contained in:
Travis CI
2017-12-29 11:42:20 +00:00
parent 6d573e94a9
commit 837ebce419
3 changed files with 3 additions and 0 deletions

View File

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