In order to consolidate numbers with the same sequence ID and store the total sum in a new array named 'final', follow the steps below:
INPUT =>
$scope.initial = [{seq:11, name:'ABC', number:20},
{seq:11, name:'ABC', number:50},
{seq:11, name:'ABC', number:80},
{seq:12, name:'DEF', number:30},
{seq:13, name:'JKL', number:10},
{seq:13, name:'JKL', number:15}];
OUTPUT =>
$scope.final = [{seq:11, name:'ABC', number:150},
{seq:12, name:'DEF', number:30},
{seq:13, name:'JKL', number:25}];
Appreciate your cooperation!