Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/ map-series Public archive

iterate asynchronously in series through an array

License

Notifications You must be signed in to change notification settings

sergioramos/map-series

Repository files navigation

map-series

NPM version Build Status Dependency Status Coverage Status Code Climate

install

npm install [--save/--save-dev] map-series
component install ramitos/map-series

api

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]
})

license

MIT

About

iterate asynchronously in series through an array

Resources

License

Stars

Watchers

Forks

Packages

No packages published