-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reduceRight docs say takes object|array; only supports array #1232
Comments
If you were using an iterator with |
Okay, second part. Should |
Ah, yes. |
Because
reduceRight
callsArray.prototype.slice
on the passed in collection it only supportsArrays
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 supportArray | Object
in these cases.The text was updated successfully, but these errors were encountered: