promise.mapper
"Returns a promise containing the result of the promisified mappingFn on its elements. Order is preserved. Additionally, rejection occurs if any of the promises reject.
[![NPM][promise-mapper-icon]][promise-mapper-url]
Install
$ npm install promise.mapper --save
Usage
var map = var http
API
map(input..., mapperFn)
-> promise
Returns a promise containing the result of the promisified mappingFn on its elements. Order is preserved. Additionally, rejection occurs if any of the promises reject.
Iterable<Promise|any>
input A sequence of promises or instanceof Iterable
Function
mapperFn A mapping function that returns a promise