npm install [--save/--save-dev] map-series
component install ramitos/map-series
var map = require('map-series')
map([1, 3, 2], function (x, callback) {
setTimeout(function(){
callback(null, x*2)
}, x*25)
}, function (err, results){
if(err) throw err
console.log(results) //=> [2, 6, 4]
})
MIT