When I run the below code and try accessing the "id" within images using the map() method, it gives me undefined. Whereas, accessing the reId/name/dob/number is the same as console.log(d.reId)
var data = [
{
reId: 'huih23432',
name: 'skdskdss',
dob: '26/06/1998',
number: '34535353543',
images: {
"id": 'https://picsum.photos/200',
"link": 'https://picsum.photos/200',
},
},
{
"name": "x"
}
]
data.map((d)=>{
console.log(d.images.id)
})
I want a solution using map() method itself to access the id | link within "images" key.