I am fairly new to Javascript- and trying to iterate over a dictionary in Javascript. I can easily do so in python:
for key, value in dict.items():
//do something
Is there a similar way to do the same in Javascript?
Structure I am trying to iterate over is:
{ 'meta.num_prod': 4,
'meta.crtd_on': '2015-12-24T06:27:18.850Z',
'meta.last_upd': '2015-12-24T06:46:12.888Z',
's.103114':
{ prod_id: '103114',
product_type: 'normal',
last_updated: '2015-12-24T06:28:44.281Z',
qty: 3,
created_on: '2015-12-24T06:27:18.850Z' },
's.103553':
{ prod_id: '103553',
product_type: 'normal',
last_updated: '2015-12-24T06:46:12.888Z',
qty: 1,
created_on: '2015-12-24T06:46:12.888Z' } }