Hacker News new | ask | show | jobs
by gr4vityWall 348 days ago
Yes, your understanding is correct. It's literally calling map() on an array, followed by a flat().

Sorry, I should have added more context to my post. I edited my post and added a link to the MDN definition of the flatMap function.