diff --git a/README.md b/README.md index fcb494629..28ff5729f 100644 --- a/README.md +++ b/README.md @@ -4116,6 +4116,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 9948ab399..f32dbeab8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1837,6 +1837,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 3070bd453..c7e761d95 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -21,6 +21,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
 
 
 
+
 const max = (...arr) => Math.max(...[].concat(...arr);
 ```