I have an object of objects. Example data:
{ ‘285’: {
ShopId: 285, eCommOrderId: 100004, Email: ‘GUESTACCOUNT13@GUESTACCOUNT.COM’, Name: ‘Tim Jones’, Phone: ‘6178038203’, Status: ‘Awaiting Payment’, OrderDate: 2022-04-22T15:16:07.000Z, ItemCount: 1, SubTotal: 12 }
,‘301’: { ShopId: 301, eCommOrderId: 100004, Email: ‘GUESTACCOUNT13@GUESTACCOUNT.COM’, Name: ‘Tim Jones’, Phone: ‘6178203’, Status: ‘Awaiting Payment’, OrderDate: 2022-04-22T15:16:07.000Z, ItemCount: 4, SubTotal: 78 }
}
I would think the count/length of this object is 2, but if I try this -
This is what shows up in the log -
What am I missing?