I have an array that contains two objects with Key Value Pairs.
Object 1 : Key: "FirstObj" Value: "xyz"
Object 2 : Key: "SecondObj" Value: "abc"
I want to know how can I retrieve the value of array with Key FirstObj
?
Tried this so far:
var getKeyValue= [];
for(var i=0;i<myChartArray.length;i++)
{
getKeyValue.push(myChartArray[i]["FirstObj"]);
}