Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
iterate asynchronously in series through an array
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
test
.coveralls
.gitignore
.jshintrc
.tern-project
.travis.yml
Makefile
component.json
license
package.json
readme.md

readme.md

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

Something went wrong with that request. Please try again.