This repository is a mirror of the component module ramitos/map-series. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/ramitos-map-series
. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.
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