New Set.prototype methods

Michał Wadas michalwadas at gmail.com
Sun May 29 13:13:36 UTC 2016


I have written proposal for new Set.prototype methods.

https://github.com/Ginden/set-methods

New methods would be:

   - Set.prototype.filter
   - Set.prototype.map
   - Set.prototype.some
   - Set.prototype.every
   - Set.prototype.find
   - Set.prototype.union
   - Set.prototype.intersect
   - Set.isSet


TBA:

   - Set.prototype.difference (or .except)

%SetIteratorPrototype% is discussed in text.

BTW, is there any way to subclass SetIterator or check if object is
SetIterator? If not it seems like issue for subclassing Set.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160529/ad30b42b/attachment.html>


More information about the es-discuss mailing list