diff --git a/README.md b/README.md index 5ac9636ec..d350e2006 100644 --- a/README.md +++ b/README.md @@ -2573,12 +2573,7 @@ Returns the maximum value out of two or more numbers/arrays. Use `Math.max()` combined with the spread operator (`...`) to get the maximum value in the array. ```js - - - - - -const max = (...arr) => Math.max(...[].concat(...arr); +const max = (...arr) => Math.max(...[].concat(...arr)); ```
diff --git a/docs/index.html b/docs/index.html index b747f7bc9..cda31a86a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1216,12 +1216,7 @@ lcm([1, 3, 4], 5); // 60

max

Returns the maximum value out of two or more numbers/arrays.

Use Math.max() combined with the spread operator (...) to get the maximum value in the array.

-

-
-
-
-
-const max = (...arr) => Math.max(...[].concat(...arr);
+
const max = (...arr) => Math.max(...[].concat(...arr));
 
max([10, 1, 5]); // 10