I am trying to get the array value from the object I created but seems like that obj.item is not working to me. It always saying undefined here's my code::
$.each(componentSentenceArray, function(index,item) {
conole.log(item.item_name)
});
and here is my object
ingredient:
Array(3)
0:{item_name: "Albenza", uom_code: "", uom_desc: "", amount: ""}
1:{item_name: "Baclofen", uom_code: "", uom_desc: "", amount: ""}
2:{item_name: "Lasix", uom_code: "", uom_desc: "", amount: ""}
main_component:
Array(1)
0 :{item_name: "Lasix", uom_code: "", uom_desc: "", amount: ""}
itemkey anywhere in the snapshot.