cizar / async-array-each

Async Array.prototype.forEach()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async Array.prototype.forEach()

var asyncEach = require('async-array-each');
asyncEach([1, 2, 3], function(item, next) {
  setTimeout(function () {
    console.log(item);
    next();
  }, 1000);
}, function() {
  console.log('Finnish!');
});

About

Async Array.prototype.forEach()


Languages

Language:JavaScript 100.0%