diff --git a/README.md b/README.md index ea3a1fa7e..9422dad7b 100644 --- a/README.md +++ b/README.md @@ -4110,6 +4110,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr); ``` diff --git a/docs/index.html b/docs/index.html index 8b1fcfd19..f5b11ff98 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1831,6 +1831,7 @@ Use Number() to check if the coercion holds.

+ const max = (...arr) => Math.max(...[].concat(...arr);
max([10, 1, 5]); // 10
diff --git a/snippets/max.md b/snippets/max.md
index e5e6beb15..578e8b423 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -15,6 +15,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
 
 
 
+
 const max = (...arr) => Math.max(...[].concat(...arr);
 ```