Because reduceRight calls Array.prototype.slice on the passed in collection it only supports Arrays
This begs the question, is reversing an object really a good pattern? How about an iterator? If yes, should implement eachRight, eachOfRight and friends?
Also should we document Iterable support on all methods supporting iterators? Currently we only state we support Array | Object in these cases.
Because
reduceRightcallsArray.prototype.sliceon the passed in collection it only supportsArraysThis begs the question, is reversing an object really a good pattern? How about an iterator? If yes, should implement
eachRight,eachOfRightand friends?Also should we document
Iterablesupport on all methods supporting iterators? Currently we only state we supportArray | Objectin these cases.