ronblackHP
10/16/2019 - 4:11 PM

Sum Complex Data

complexData = [ {a: 4}, {a: 18}, {a: 51} ];
sum = arrayReduce( complexData, function(prev, element){
            return prev + element.a;
        }, 0 );
writeDump(sum);