It is currently at stage 3.
This would add the following methods:
These methods would all require their arguments to be a Set, or at least something which looks like a Set in terms of having a numeric
size property as well as
See details.md for details of current decisions made in this proposal.
Rendered spec text is available here.
TC39 meeting notes
- May 2018
- January 2019
- March 2022 - discussion of how to extend built-ins in general
- July 2022
- September 2022
- November 2022
(Semi)relevant previous discussions
- Map#map and Map#filter
- Map.prototype.map and Map.prototype.filter (spec) + Set
- Map: filter/map and more
- Original topic regarding this proposal
- Newer topic regarding this proposal
Comparison with other languages
See other languages document to get overview of
Set methods in other languages.
See naming bikeshedding document for details.
We decided to choose:
- Symmetric difference -
- Intersection -
- Union -
- Difference -