2020-11-27 19:27:44 +01:00
|
|
|
async function asyncForEach(
|
|
|
|
array: Array<any>,
|
2020-12-14 09:23:29 +01:00
|
|
|
callback: (arg0: any, arg1: number, arg2: Array<any>) => void
|
2020-11-27 19:27:44 +01:00
|
|
|
): Promise<void> {
|
2020-03-05 19:32:34 +01:00
|
|
|
for (let index = 0; index < array.length; index += 1) {
|
2022-08-29 16:52:18 +02:00
|
|
|
callback(array[index], index, array);
|
2020-03-05 19:32:34 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export { asyncForEach };
|