diff --git a/README.md b/README.md
index fbb0bc525..6a85eb82a 100644
--- a/README.md
+++ b/README.md
@@ -4100,6 +4100,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 004f9145a..ad6207147 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1822,6 +1822,7 @@ Use Number() to check if the coercion holds.
Returns the maximum value out of two or more numbers/arrays.
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 c90c6d655..7c09c9725 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -6,6 +6,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
```js
+
const max = (...arr) => Math.max(...[].concat(...arr);
```