[
{
"country": "Afghanistan",
"products": {
"beer": 2235,
"wine": 2274,
"juices": 7
}
},
{
"country": "Asia",
"products": {
"beer": 2362,
"wine": 20204,
"juices": 238
}
},
{
"country": "Italy",
"products": {
"beer": 267,
"wine": 459,
"juices": 3
}
},
{
"country": "North America",
"products": {
"beer": 2367,
"wine": 4359,
"juices": 33
}
}
]
I have the above object and I want to remove both "Asia" and "North America", along with the whole row of data associated with them. How do I go about it?
Optional: What about if I want to remove all countries that have less than 500 beer products?