Given this JavaScript snipped (not TypeScript!). How can we use map instead of a loop?
import { serialize } from 'next-mdx-remote/serialize'
...
const helperArray = []
for (const element of arrayOfObjects) {
helperArray.push({ ...element, description: await serialize(element.description)})
}
Thanks!