Er missing argument. The spec says "If an initialValue was provided in the call to reduce, ...". The fact that undefined is different from "not provided" is the reason you have to hack around with the argument count one way or another.
On Sun, Dec 23, 2012 at 9:25 PM, Brandon Benvie <bran...@brandonbenvie.com>wrote: > Because initialValue can be a provided `undefined` in which case you would > use that, as opposed to a missing value. The specification differentiates > between a provided undefined and a lack of a parameter in a bunch of stdlib > functions/methods. >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss