Skip to content

reduceRight docs say takes object|array; only supports array #1232

@megawac

Description

@megawac

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions