diff --git a/README.md b/README.md index 962e19a99..b9b6590a3 100644 --- a/README.md +++ b/README.md @@ -2614,6 +2614,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 773c6db53..c15d38bbb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1257,6 +1257,7 @@ lcm([1, 3, 4], 5); // 60 + const max = (...arr) => Math.max(...[].concat(...arr); diff --git a/snippets/max.md b/snippets/max.md index d9028f08f..37ea0f131 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -47,6 +47,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr);