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
  • 403
  • 1
  • 9
  • 28

0 Answers0