Witness the example of my primary array:
[
{
'data': [{'value': 'Yellow'}, {'value': 'Tiny'}, {'value': 'Excellent'}]
},
{
'data': [{'value': 'Green'}, {'value': 'Large'}, {'value': 'Poor'}]
},
{
'data': [{'value': 'Blue'}, {'value': 'Medium'}, {'value': 'Superb'}]
}
]
The desired outcome is:
[
['Yellow', 'Green', 'Blue'],
['Tiny', 'Large', 'Medium'],
['Excellent', 'Poor', 'Superb']
]
I have attempted using forEach
, for...in
, filter
, and so on. However, I have not been able to achieve the expected result.