diff --git a/snippets/max.md b/snippets/max.md index 7ba4ad2f1..4d6fe2826 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -5,12 +5,7 @@ Returns the maximum value out of two or more numbers/arrays. Use `Math.max()` combined with the spread operator (`...`) to get the maximum value in the array. ```js - - - - - -const max = (...arr) => Math.max(...[].concat(...arr); +const max = (...arr) => Math.max(...[].concat(...arr)); ``` ```js