News for hackers. Stuff that matters.
Re:Flatten Arrays in Vanilla JavaScript with Flat() and Flat... by saranshk on Wednesday January 05, 2022 @01:40PM (#29813108)
agreed, though I doubt there's anything we can do about it.
Re:Flatten Arrays in Vanilla JavaScript with Flat() and Flat... by chusk3 on Wednesday January 05, 2022 @01:48PM (#29813196)
In F# we call it 'collect' instead, partially for this reason.
Re:Flatten Arrays in Vanilla JavaScript with Flat() and Flat... by scotty79 on Wednesday January 05, 2022 @05:49PM (#29816260)
When I tried to come up with better name for flatMap I got gather.

So maybe collect is a better idea.