Fixed max for good

This commit is contained in:
Angelos Chalaris
2017-12-29 15:15:40 +02:00
parent f492b1ad91
commit cf2fd804b8

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