diff --git a/README.md b/README.md index 496a99da5..6acf03f2e 100644 --- a/README.md +++ b/README.md @@ -4123,6 +4123,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 66bf07ea2..8d103b6e5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1844,6 +1844,7 @@ Use Number() to check if the coercion holds.

+ const max = (...arr) => Math.max(...[].concat(...arr); diff --git a/snippets/max.md b/snippets/max.md index bfe055115..2f89e10b1 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -28,6 +28,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr);