petermichaux at gmail.com
Sun Feb 12 16:52:32 PST 2012
In the proposal, iterators for Set are listed as todo. If engine
implementers have decided to start moving forward implementing Sets,
then it would be great if they could get iteration going sooner than
Looking at the Array iterators...
It doesn't seem very difficult to specify "forEach" as a proposal
sketch. It just has to do the following, doesn't it?
var s = new Set();
"reduce", "every", and "some" seem similarly easy. "reduceRight" is
unnecessary as a set has no order.
"filter" and "map" are similarly easy but would return set objects.
More information about the es-discuss