With this associative array, I would like to find a specfic key:
var veggie_prices = new Array();
veggie_prices["serves6"] = 20;
veggie_prices["serves8"] = 25;
veggie_prices["serves10"] = 35;
If I loop through the array, I can find the values with:
var x = veggie_prices[i].value;
but how should the key be found ?
var y = veggie_prices[i].key;