0

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"
    }
]
Simon Palmer
  • 384
  • 1
  • 2
  • 13
  • [Is Chrome’s JavaScript console lazy about evaluating objects?](https://stackoverflow.com/q/4057440) – VLAZ Sep 15 '22 at 05:57

0 Answers0