Why async.js
each
still works without calling callback
var async = require('async');
var arr = ['a', 'b', 'c', 1, 2, 3];
async.each(arr, function(item, callback) {
console.log(item);
}, function(error) {
if (error) console.log(error);
});
as a result I can see in terminal each array item, but as I understand that shouldn't be, until calling callback
, right?