Closed ljharb closed 10 years ago
ES5 array iterators take 3 args: value, index, and array.
I haven't yet added support for the 4th optional "context" arg.
In addition, if the initial value is not supplied to reduce, the first value from the array is used, and iteration begins with the second value.
reduce
they're only used internally so it's not a big deal if they match the real thing
ES5 array iterators take 3 args: value, index, and array.
I haven't yet added support for the 4th optional "context" arg.
In addition, if the initial value is not supplied to
reduce
, the first value from the array is used, and iteration begins with the second value.