I have list of objects with balances (there are other properties in objects but not imported for example):
[{ balance : 100 },{ balance : 200 },{ balance : null },{ balance : 300 }]
I am looking for smart pipe that would sum (other would average) balances in array (would prefer not using for loop - but some ES6 functionality like reduce but not sure how)