Why am I getting post
undefined if it is decleared in async post
first line?
postsJSON = await posts.map(async post => {
const contentPost = await page.evaluate(async () => {
const response = await fetch("https://www.instagram.com/p/" + post['shortcode'] + "/?__a=1")
return await response.json()
})
...
})