DEV Community

Discussion on: flat() vs flatMap()

Collapse
 
sojinsamuel profile image
Sojin Samuel • Edited

First it applies map method then flat() comes into play. I've heard somewhere that, it should actually becalled mapFlat() instead of flatMap()