I spent 3 days looking for help. I'm new to javascript so there are a lot of limitations
I'm trying to get the values in this array, but I haven't figured out the problem yet. Someone please help me, I thank you
const data = [
{
"label": "★ Choose Color",
"value": {
"9": {
"i": 9,
"value": "Irish-Green",
"label": "Irish",
"color": "#00902a"
}
},
"price": false
},
{
"label": "★ Choose Size",
"value": {
"1": {
"i": 1,
"value": "M",
"label": "M",
"color": "#ffffff"
}
},
"price": {
"1": 0
}
}
]
data.map((item) => {
console.log(item.value)
/*
I want to get the following values:
value, label, color
*/
item.value.map((val) => {
console.log(val)
})
})