bloodyowl/craft

`fold` should support a `context` argument.

Closed this issue · 2 comments

As with other array methods fold should support a context argument.

The native [].reduce doesn't support it, and I don't think that a (function(){}).call would really be useful here.

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).