Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

q series/mapSeries #794

Open
jdnichollsc opened this issue Nov 5, 2016 · 1 comment
Open

q series/mapSeries #794

jdnichollsc opened this issue Nov 5, 2016 · 1 comment

Comments

@jdnichollsc
Copy link

Hi guys,

What do you think about to include q.mapSeries method like Bluebird?

Check my example please: https://gist.github.com/jdnichollsc/89aa64bffda68312ecfd3acd6294f1cc

Example with Q:

var incrementNumber = function(item){
      return Q.when(item.number++);
};
        
var numbers = [{ number: 1 }, { number: 2 }, { number: 3 }];
Q.mapSeries(numbers, function(item, index, length){
      return incrementNumber(item);
}).then(function(res){
      alert("End!");
});

Regards, Nicholls

@jdnichollsc jdnichollsc changed the title q series q series/mapSeries Nov 5, 2016
@Exagram
Copy link

Exagram commented Feb 2, 2017

I'd vote for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants