`fold` should support a `context` argument.
Closed this issue · 2 comments
jdalton commented
As with other array methods fold
should support a context
argument.
bloodyowl commented
The native [].reduce
doesn't support it, and I don't think that a (function(){}).call
would really be useful here.
jdalton commented
Ah good point, though Underscore/Lo-Dash/Prototype.js support it and it keeps with API expectations (it seems a little wtf that this one method wouldn't allow it).