Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2456

Align `Set` with JavaScript `Set`

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: Q3-24FY
    • Component/s: Node.js, React Native
    • None

      Currently, the Set does not perfectly reflect a JS Set. Set currently extends an OrderedCollection, which implements a ReadOnlyArray.

      • keys should return values (Sets aren't syntactically index accessible)
      • Set is not ordered, so extending OrderedCollection may lead to assumptions that the Set is ordered.
      • May be worth looking into Set implementing a JS Set, rather than extending OrderedCollection

            Assignee:
            Unassigned Unassigned
            Reporter:
            andrew.meyer@mongodb.com Andrew Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: