From a9823509c03bd586e746cae4644beff2575211a1 Mon Sep 17 00:00:00 2001
From: Travis CI Number() to check if the coercion holds.
Use Math.max() combined with the spread operator (...) to get the maximum value in the array.
+
const max = (...arr) => Math.max(...[].concat(...arr);
max([10, 1, 5]); // 10
diff --git a/snippets/max.md b/snippets/max.md
index 7c09c9725..b2d9ba2a7 100644
--- a/snippets/max.md
+++ b/snippets/max.md
@@ -7,6 +7,7 @@ Use `Math.max()` combined with the spread operator (`...`) to get the maximum va
```js
+
const max = (...arr) => Math.max(...[].concat(...arr);
```