Fully renamed and updated everything, tagged, built
This commit is contained in:
10
snippets/arrayMin.md
Normal file
10
snippets/arrayMin.md
Normal file
@ -0,0 +1,10 @@
|
||||
### arrayMin
|
||||
|
||||
Returns the maximum value in an array.
|
||||
|
||||
Use `Math.min()` combined with the spread operator (`...`) to get the minimum value in the array.
|
||||
|
||||
```js
|
||||
const arrayMin = arr => Math.min(...arr);
|
||||
// arrayMin([10, 1, 5]) -> 1
|
||||
```
|
||||
Reference in New Issue
Block a user