Parsing API response

Parsing API response
0

#1

So, I’m new with APIs and React, I was trying to get multiple requests using Promise.all

Promise.all([p1, p2]).then(values => { 
          const newItems = values.map(i => {
            const item = i.item;
            console.log(item)
          })
        });

This is what appears in the console when I console.log(item). I want to just console.log the url inside of the img object.

[


       {

            id: 1,
            email: "[email protected]",
            img: [{
               imgId:"",
               url:[]
            }]
        }

   ]

I tried this (item.img.url) and also(item[0].img.url but it keep giving me an error.