Hacker News new | ask | show | jobs
by icc97 3213 days ago
Here's a half baked explanation, as in just the flatmap part.

map is understood in javascript.

So you 'just' need to make the leap to flatmap. Which is mapping something and flattening the result.

So still you need to learn is what flatten is. But that's not too hard to learn.

Try the funfunfunction video [0]

[0]: https://m.youtube.com/watch?v=9QveBbn7t_c