update snippets 1-15
This commit is contained in:
committed by
Agamemnon Zorbas
parent
9b8c9f4bcf
commit
b2cffa6858
@ -6,5 +6,8 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
|
||||
|
||||
```js
|
||||
const arrayMax = arr => Math.max(...arr);
|
||||
// arrayMax([10, 1, 5]) -> 10
|
||||
```
|
||||
|
||||
```js
|
||||
arrayMax([10, 1, 5]) -> 10
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user