dsa-connectors-old/test/utils.js

6 lines
169 B
JavaScript
Raw Normal View History

2020-05-05 01:54:10 +00:00
module.exports.asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};