Q:

How to get zipCode from object? 

I have this:
[Object]
  0:Object
    zipCode:"1232"

Now what i want is to get zipCode from object i tried with this:
Object[0].zipCode but i get message that 0 is undefined
Update:
 this.restService.getByParam("findAddress", customerId)
                    .subscribe(results =>   {
                    this.address = results.payload;
                });

And then i get that object and now i want to do something like this:
console.log(this.address[0].zipCode

A:

var obj = { 0 : {'zipCode':"1232"} }

for(var key in obj) {
  console.log(obj[key].zipCode);
}

