JavaScript Jabber cover image

Functional Programming with Ian Schwartz - JSJ 574

JavaScript Jabber

00:00

Flat Map in JavaScript Language

Flat map is a method on arrays, kind of like map with the added functionality that if you've got an array of arrays, it flattens it into an array. If you return a promise inside of flat map and then of a promise, you know, you don't get a promise of a promises, right? It's automatically flattened. And promises work the same way. So those are the same method. Let me quickly pull up the MDN. Flat map in MDN  is literally called flat map in JavaScript language.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app