Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants