Another alternative, that I use :
const final = await arr.reduce(async (promise, key) => { const partial = await promise partial[key] = await asyncFn(key) return partial }, {})
We're a place where coders share, stay up-to-date and grow their careers.
Another alternative, that I use :