Fixed max for good

This commit is contained in:
Angelos Chalaris
2017-12-29 15:15:40 +02:00
parent 6ce01769e9
commit 38c44e3e99

View File

@ -5,12 +5,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));
```
```js