I have an array of below type,
[{
"type":"G",
"amount":"123",
"penamount:"110"
},{
"type":"N",
"amount":"123",
"penamount":"123"
},{
"type":"B",
"amount":"1000",
"penamount":"900"
}]
Now in case if I need the amount for type “N” how can I easy achieve this in javascript.Using map is one option.But how can that be achieved
Any help appreciated.