asyncforeaches6
v1.0.0
Published
It's an async foreachloop, duh
Downloads
2
Maintainers
Readme
AsyncForeachES6
Provides an asynchronous Foreach function, DUH
##Usage
import asyncForEach from 'AsyncForeachES6';
const array = [1, 2, 3, 4];
const asyncFunction = async () => {
console.log('start');
await asyncForEach(array, (arrayItem) => {
console.log(arrayItem);
});
console.log('end');
};
asyncFunction();
start
1
2
3
4
end