From: es-discuss [mailto:[email protected]] On Behalf Of Domenic Denicola
> Unless I'm missing something (quite possible!), I would prefer not to add new > methods to Map and Set when they could be added to %IteratorPrototype%. Yeah, I'm missing something. It's the difference in code between: ```js var newMap = oldMap.map(([k, v]) => [k + 1, v + 1]); ``` versus ```js var newMap = new Map(oldMap.entries().map((([k, v]) => [k + 1, v + 1]); ``` I think I still prefer avoiding every iterable subclass adding its own map/filter/etc. in favor of people using the compositional base primitives, but at least I see the argument now. _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

