Answer the question
In order to leave comments, you need to log in
How to make the loop work?
for (var i = 0; i <= apples.length; i++) {
module.Method(apples[i], (function (err, result){
if (err){
console.log(err);
return;
}
}));
}
Answer the question
In order to leave comments, you need to log in
forEach не проще использовать ?
у вас с кол-вом элементов в цикле перебор (или нет 0-го или нет равного apples.length)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question