diff --git a/README.md b/README.md index e87a7a70a..ea3a1fa7e 100644 --- a/README.md +++ b/README.md @@ -4109,6 +4109,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 3d0e7717d..8b1fcfd19 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1830,6 +1830,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 fa12b8760..e5e6beb15 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -14,6 +14,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
 
 
 
+
 const max = (...arr) => Math.max(...[].concat(...arr);
 ```