js-mapcat
Map over collections and return one level deep flattened collection
Installation
$ npm i js-mapcat
Usage
; ; // [1, 4]; // [15, 48]; // [3, 8]
Better example
mapcat
with a single collection
Fetch multiple news feeds and produce an array of authors for every article in each feed.
Promiseall ;