diff --git a/README.md b/README.md index 6a85eb82a..09f3d8c7b 100644 --- a/README.md +++ b/README.md @@ -4101,6 +4101,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va ```js + const max = (...arr) => Math.max(...[].concat(...arr); ``` diff --git a/docs/index.html b/docs/index.html index ad6207147..5e025847b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1823,6 +1823,7 @@ Use Number() to check if the coercion holds.

Use Math.max() combined with the spread operator (...) to get the maximum value in the array.


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