diff --git a/README.md b/README.md index 9422dad7b..ff5e6a15e 100644 --- a/README.md +++ b/README.md @@ -4111,6 +4111,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 f5b11ff98..5bf64d564 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1832,6 +1832,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 578e8b423..d903bff80 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -16,6 +16,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
 
 
 
+
 const max = (...arr) => Math.max(...[].concat(...arr);
 ```