UNPKG

iter-tools-es

Version:
9 lines (7 loc) 215 B
function* map(iterable, cb) { for (const value of iterable) yield cb(value); } function asyncParallelEach(iterable, cb) { return Promise.all(map(iterable, cb)); } exports.asyncParallelEach = asyncParallelEach;