npm

Need private packages and team management tools?Check out npm Orgs. »

q-map

0.2.0 • Public • Published
var Q = require('q')
 
Q.map = require('q-map').map
 
var myArray = [1,2,3,4,5,6,7,8]
 
// Limits promise concurrency to 3
 
Q.map(myArray, function(element) {
    return promiseFactory(element)
}, 3)
    .then(function(resolvedArray) {
        doStuff()
    })

Keywords

install

npm i q-map

Downloadsweekly downloads

238

version

0.2.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability