Fix typo in snippet file

This commit is contained in:
Angelos Chalaris
2017-12-13 11:30:39 +02:00
parent 835ed9283e
commit bc13193797
2 changed files with 3 additions and 2 deletions

View File

@ -553,3 +553,4 @@ const validateNumber = n => !isNaN(parseFloat(n)) && isFinite(n);
## Credits ## Credits
*Icons made by [Smashicons](https://www.flaticon.com/authors/smashicons) from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).* *Icons made by [Smashicons](https://www.flaticon.com/authors/smashicons) from [www.flaticon.com](https://www.flaticon.com/) is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).*

View File

@ -1,6 +1,6 @@
### Get max value from array ### Get max value from array
Use `Math.max()` combined with the spread operator (`...`) to get the minimum value in the array. Use `Math.max()` combined with the spread operator (`...`) to get the maximum value in the array.
```js ```js
const arrayMax = arr => Math.max(...arr); const arrayMax = arr => Math.max(...arr);