Returns the sum value of a given path
sum([1, 2, 3]); // 6
sum([{a: 1}, {a: 2}, {a: 3}], 'a'); // 6
sum([{a: {b: 1}}, {a: {b: 2}}, {a: {b: 3}}], 'a.b'); // 6
Optional
Generated using TypeDoc
Returns the sum value of a given path
Example
Example
Example