I am looking for a module in Node.js that will run a function for each item in an array but pause execution of the next item in the array until a value is returned for the last.
I have async.concatSeries() running a series of request functions.
looks like this
var foo = [id,id,id];
function bar(){//do something then return value}
async.concatSeries(foo, bar, function(err, result){//log result});
I would like to return all of these in the same order as the array. Any help would be great, thanks!