added missing square bracket on example
This commit is contained in:
committed by
GitHub
parent
8b88149ce2
commit
455b2cf570
@ -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