We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8884f9 commit 37835c5Copy full SHA for 37835c5
chapters/arrays/max-array-value.md
@@ -13,7 +13,7 @@ In ECMAScript 5, use `Array#reduce`. In older javascripts, use Math.max over a l
13
14
{% highlight coffeescript %}
15
# ECMAScript 5
16
-[12,32,11,67,1,3].reduce (a,b) -> Math.max(a,b)
+[12,32,11,67,1,3].reduce (a,b) -> Math.max a, b
17
# => 67
18
19
# Pre-EC5
0 commit comments