diff --git a/README.md b/README.md index 67d013d73..d5643b471 100644 --- a/README.md +++ b/README.md @@ -2617,6 +2617,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 f2cbb949c..cf89a0d90 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1260,6 +1260,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 4cf62dc65..1b2ea58c4 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -50,6 +50,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr);