Fix typo in snippet file
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
### 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
|
||||
const arrayMax = arr => Math.max(...arr);
|
||||
|
||||
Reference in New Issue
Block a user