zenika-open-source / immutadot

immutadot is a JavaScript library to deal with nested immutable structures.
https://immutadot.zenika.com
MIT License
178 stars 5 forks source link

Add array.flat and array.flatMap #321

Closed nlepage closed 5 years ago

nlepage commented 5 years ago

https://mdn.io/Array/flat https://mdn.io/Array/flatMap

nlepage commented 5 years ago

@frinyvonnick @EmrysMyrddin I'm having a doubt on this one. immutadot-lodash doesn't have flatMap and flatten. I had done this intentionnaly in order to avoid functions that would drastically change data's structure... This has no sense in a redux store, but there may actually be other use cases. What do you think ?