How do I remove elements from an array of objects? I already know the name of the keys to be removed (in the example below: type).
For example, this is the array I have:
{
"color": "purple",
"type": "minivan",
},
{
"color": "red",
"type": "station wagon",
}
And this is the array I would like to get:
{
"color": "purple",
},
{
"color": "red",
}