An implementation of Array.prototype.flatMap
as specified by Brian Terlson in https://github.com/bterlson/proposal-flatMap
🐊Putout plugin adds ability to apply 'flatMap()'
Convert a tree to a flat map with dot-separated keys
Curried function deriving new array values by applying provided function to each item/index of provided array then applying concat
to the results. Fast and compatible with modern or old browsers.