Is there a way to locate data in an array by using value identifiers?
Example: In the object below, I want to do something similar to:
for(country in data.countries)
{
if(country.name === "GB") {return-value-of-country.Clear;}
}
Object example:
{
"countries":[
{
"name": "GB",
"Rain":" url1 ",
"Clear":" url2 "
}
...
]
}