diff --git a/README.md b/README.md index bcd856bbd..12b73701d 100644 --- a/README.md +++ b/README.md @@ -4104,6 +4104,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 bfe5b59d5..fd39cde22 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1826,6 +1826,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 7ba4ad2f1..8cf3153ff 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -10,6 +10,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
 
 
 
+
 const max = (...arr) => Math.max(...[].concat(...arr);
 ```