Is there a specific AngularJS method to retrieve a value from an object using its key?
var myobj= {
"set1": {
"key": "B11",
"color": "yellow"
},
"setA": {
"key": "F34",
"color": "green"
}
}
For example, if I want to access the value "green"
by providing the key "F34"
in the object myobj
, is there a built-in AngularJS way to achieve this or should I refer to resources like this SO question?