diff --git a/README.md b/README.md index 659ddc65c..ab1608e3d 100644 --- a/README.md +++ b/README.md @@ -2691,6 +2691,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 d1a63f68a..4068be7a2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1243,6 +1243,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 9208ee8eb..a2188fd48 100644 --- a/snippets/max.md +++ b/snippets/max.md @@ -33,6 +33,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va + const max = (...arr) => Math.max(...[].concat(...arr);