dsa-connectors-old/test/utils.js
2020-05-05 04:54:10 +03:00

6 lines
169 B
JavaScript

module.exports.asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};