I have created an Array in typescript and can console.log the Array. See below However, when I try to iterate over it I only get "undefined".
I cant even find the nearbyCollection.length which returns 0
The array (shortened for clarity) is below
nearbyCollection = [
{
"id": 3400,
"name": " "
},
{
"id": 97610,
"name": " "
},
{
"id": 97614,
"name": "410 PALM AVE UNIT A"
},
{
"id": 3400,
"name": " "
},
{
"id": 1140,
"name": "410 PALM AVE UNIT B"
}
]