[
{
"item": "1",
"values": [{"name": "A"}]
},
{
"item": "2",
"values": [{"name": "B"}]
},
{
"item": "3",
"values": [{"name": "A"}]
}
]
The desired outcome is to extract ["A", "B"]
based on the values in the name field.
How would you approach this task using Javascript? Your insights are appreciated.