I have something like this:
$scope.traveler = [ { description: \'Senior\', Amount: 50}, { description: \'Senior\', Amount: 50},
I was already using jquery. But I think its intuitive enough to just have:
var total_amount = 0; $.each(traveler, function( i, v ) { total_amount += v.Amount ; });
This is basically just a short-hand version of @akhouri's answer.