JSFiddle - React, Tailwind, and code Playground

by Emad Dehnavi

JavaScript

var foo = { 0 : {'zipCode':"1232"} }
   
    for(var key in foo) {
    var value = foo[key];
}

console.log(value); // this give you 'zipCode':"1232"
console.log(value['zipCode']); // this give you "1232"