tc39 / proposal-record-tuple

ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!
https://tc39.es/proposal-record-tuple/
2.5k stars 62 forks source link

initial pass of Tuple group/groupToMap for proposal-array-grouping #317

Open rickbutton opened 2 years ago

rickbutton commented 2 years ago

This PR represents a first pass addition of Tuple.prototype.group and Tuple.prototype.groupToMap, reflecting the addition of similar methods to the Array.prototype in https://github.com/tc39/proposal-array-grouping .

The array grouping proposal is currently at Stage 3, so we don't intend to merge this until Array Grouping reaches Stage 4, but want to prepare this in case it advanced ahead of Records and Tuples.

A few notes on this spec text: