From 38c44e3e99062d050e760baa590701f7d44d1f74 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 29 Dec 2017 15:15:40 +0200 Subject: [PATCH] Fixed max for good --- snippets/max.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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