I have big chunk of array of object. I want to get something then assign it to a new property, I did this
async function t() {
return bigChunkArr.map(async o => ({
...o,
address: await getAddress(o.lat, o.lng)
}))
}
const result = await t() //expected to be array
The problem the result
is still a promise
, why?