0

I'm trying to access a specific property in an object. The object has unique keys (referencing state codes). I'm wondering how I can access the label property be referencing the unique state code (ex. CA).

 var object = {
     'AL': {
         label: 'Alabama'
     },

     'CA': {
         label: 'California'
     },
     ....
 };
Michael
  • 381
  • 5
  • 22

0 Answers0