3.0.0 • Published 5 years ago
series-async-each v3.0.0
Series Async Each
An async replacement of forEach in series not parallel.
Installation
npm install series-async-each
Usage
const eachAsync = require('series-async-each');
const sleep = require('some-promised-sleep');
await eachAsync(['a', 'b', 'c'], async (a, i, arr) => {
await sleep(2);
console.log(a, i, arr);
});