
Functional Programming with Ian Schwartz - JSJ 574
JavaScript Jabber
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.
00:00
Transcript
Play full episode
Remember Everything You Learn from Podcasts
Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.