Ok so let\'s say that I have my object
myobj = {\"A\":[\"Abe\"], \"B\":[\"Bob\"]}
and I want to get the first element out of it. As in I want i
var myobj = {"A":["Abe"], "B":["Bob"]}; var keysArray = Object.keys(myobj); var valuesArray = Object.keys(myobj).map(function(k) { return String(myobj[k]); }); var mydata = valuesArray[keysArray.indexOf("A")]; // Abe