Fix max snippet

This commit is contained in:
Angelos Chalaris
2017-12-29 15:11:27 +02:00
parent 6bee20625a
commit 0520c8b866

View File

@ -5,11 +5,6 @@ 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);
```