I'm looking to remove an element from a JSON objects array. Here's the array:
var standardRatingArray = [
{ "Q": "Meal",
"type": "stars"
},
{ "Q": "Drinks",
"type": "stars"
},
{ "Q": "Cleanliness",
"type": "stars"
}
];
Is there a way to delete the object with the key "Q": "Drinks"
without iterating through the array?
Appreciate any guidance.