yield-contract/scripts/utils.js

5 lines
176 B
JavaScript
Raw Normal View History

2020-08-30 18:03:16 +00:00
module.exports.asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
};