2020-02-18 08:57:00 +01:00
|
|
|
async function asyncForEach(array: Array<any>, callback: Function) {
|
2020-03-05 19:32:34 +01:00
|
|
|
for (let index = 0; index < array.length; index += 1) {
|
|
|
|
await callback(array[index], index, array);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export { asyncForEach };
|