diff --git a/README.md b/README.md index db1f85bd4..496a99da5 100644 --- a/README.md +++ b/README.md @@ -4122,6 +4122,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 f93c91b7a..66bf07ea2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1843,6 +1843,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 d3afdb320..bfe055115 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -27,6 +27,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr);