How can I sum data of my first array with data of array in it?
code
this is my current code which is working on first array only
calculateTotal: function(){
var sum=0;
for(var i=0;i<this.accounts.length;i++){
sum += this.accounts[i].balance;
}
return sum;
},
What should I change in this code to get the result i want?

this.accountsis not null.