Open zloirock opened 5 years ago
Makes sense to see iterators .flatMap
semantic https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype-flatmap.
I'm not sure if there is any intuitive semantics for Map.prototype.flatMap
and Map.prototype.flat
. Set.prototype.flatMap
is quite obvious, I will add it.
So,
flatMap
andflat
are added toArray
in ES2019. In which form they should be added to this proposal? What they should flatten - sets, arrays, iterables?