async-array-extends asyncMap Usage const { asyncMap } = require('async-array-extends') function sleep() { return new Promise((res, rej) => { setTimeout(res, 1000) }) } async function test() { await map([1,2,3], async(item) => { await sleep() console.log(item) }) } test()