Skip to content

SortedMap reversed() fails with exception #223

Open
@wittlesouth

Description

@wittlesouth

The following code:

const sm = new SortedMap()
// Fill SortedMap
const sm_desc = sm.reversed()

fails with "TypeError: this.constructClone(...).reverse is not a function", specifically on line 267 of generic-collection.js.GenericCollection.reversed. Per the docs, I was expecting it to return a copy with the items in reversed order of keys.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions