asyncit
v1.0.1
Published
Javascript package for async loop
Downloads
10
Maintainers
Readme
###Javascript package for async loop
####Use
var iterate = require("asyncit");
//array = [ {...}, ...];
iterate(array)
.it(function(data, next, stop, i, last){
//EXAMPLE
table.createRow([
data.type,
data.num,
data.cant,
data.und,
time.getDateTime(data.date)
]);
loaded.innerHTML = i;
next();
if(last) stop();
})
.stop(function(){
//do something at end
table.display();
});