Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set.prototype.{ flatMap, flat } #34

Open
zloirock opened this issue Mar 16, 2019 · 2 comments
Open

Set.prototype.{ flatMap, flat } #34

zloirock opened this issue Mar 16, 2019 · 2 comments

Comments

@zloirock
Copy link
Contributor

zloirock commented Mar 16, 2019

So, flatMap and flat are added to Array in ES2019. In which form they should be added to this proposal? What they should flatten - sets, arrays, iterables?

@zloirock
Copy link
Contributor Author

zloirock commented Dec 9, 2019

Makes sense to see iterators .flatMap semantic https://tc39.es/proposal-iterator-helpers/#sec-iteratorprototype-flatmap.

@Ginden
Copy link
Collaborator

Ginden commented Aug 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants