if I have an input and the user have to choose a country from a list, and I have an array of object
[
{
"id":1,
"country": "Afghanistan",
"cities": [
"Herat",
"Kabul",
"Kandahar",
"Molah"
]
},
{
"id":2,
"country": "Albania",
"cities": [
"Elbasan",
"Petran",
"Pogradec"
]
},
{
"id":3,
"country": "Algeria",
"cities": [
"Algiers",
"Annaba",
"Azazga",
"Batna City"
]
}]
how can I reach to cities of the the specific country that user choose?