Skip to content

Branches Does not preserve order #215

@Millsky

Description

@Millsky

First off, I would like to say great work on this library, the documentation is fantastic and it makes dealing with complex objects easy.

My issue resolves around the order in which the branches are visited.
for example:

L.branches(1,2,3) produces an object with the following keys. [1,2,3].
L.branches(3,2,1) produces an object with the following keys. [1,2,3]

I would expect L.branches(3,2,1) to visit the keys in the order in which they were provided as arguments, as opposed to the object key order.

I would propose using a Map to preserve the order of the arguments.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions