News for hackers. Stuff that matters.
Re:Flatten Arrays in Vanilla JavaScript with Flat() and Flat... by ReleaseCandidat on Wednesday January 05, 2022 @11:25AM (#29810979)
> If anything, .flat() is the aberration.

Same as `flatmap` (`bind`), `flat` is 'part' of a monad (as `join`).

Re:Flatten Arrays in Vanilla JavaScript with Flat() and Flat... by beaconstudios on Wednesday January 05, 2022 @11:28AM (#29811031)
good point, I didn't think of that equivalence.