JSFiddle - React, Tailwind, and code Playground
by Nayana Das
JavaScript
var arrayName = [{'i_id':'119',
'name':'Brinjal-250',
'weight':'250.Gm',
'qty':'1',
'price':'5',
'market':'55',
'image':'f_control/images/vegetables/Brinjal-PNG-Image-min'},
{'i_id':'101',
'name':'Tomato',
'weight':'500.Gm',
'qty':'1',
'price':'4',
'market':'44',
'image':'f_control/images/vegetables/tometo-min.jpg'}];
arrayName.forEach(function (item, index) {
console.log(item["name"]);
})
for(var key in arrayName) {
console.log("key: "+key+" Value: "+arrayName[key]["name"]);
}