How can I update an array (key,value) object?
arrTotals[
{DistroTotal: "0.00"},
{coupons: 12},
{invoiceAmount: "14.96"}
]
I want to update the 'DistroTotal' to a value.
I have tried
for (var key in arrTotals) {
if (arrTotals[key] == 'DistroTotal') {
arrTotals.splice(key, 2.00);
}
}
Thanks ..