Array length of an Array not displaying in console

Viewed 23

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

Console.log of nearbyCollection array

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"
    }
]
0 Answers
Related