added missing square bracket on example
This commit is contained in:
committed by
GitHub
parent
b5e886f7a3
commit
afd6e0a346
@ -4,5 +4,5 @@ Passing an array, it executes the Math.min method using the spread operator to f
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
const getMinValue = arr => Math.min(...arr);
|
const getMinValue = arr => Math.min(...arr);
|
||||||
// getMinValue([10, 1, 5) -> 1
|
// getMinValue([10, 1, 5]) -> 1
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user