I am trying to use async.map, but I can not get it to call a callback for some reason, in the example below, the d function should display the r array, but that just is not the case. in fact it is as if d was never called.
I have to do something really wrong, but I canβt understand what
async = require('async'); a= [ 1,2,3,4,5]; r=new Array(); function f(callback){ return function(e){ e++; callback(e);} } function c(data){ r.push(data); } function d(r){ console.log(r);} async.map(a,f(c),d);
in advance for your help
user3097050
source share