most-promise-spread
v1.0.0
Published
Convert a promise fulfilling as an array into a Most.js stream
Downloads
5
Readme
Most Promise Spread
Convert a Promise whose fulfillment value is an Array into a Most stream. This roughly parallels Bluebird's Promise.spread, which likewise flattens a fulfilled array value.
This was developed to allow most.concatMap to work with Promises fulfilling into arrays. Some existing discussion in Most#103 pointed to the strategy arrived at here, of using unfold.