MCPcopy Create free account
hub / github.com/arguiot/TheoremJS / sum

Method sum

__test__/theorem.js:195–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 return [...arguments].quickSort()
194 }
195 sum() {
196 return [...arguments].reduce((a, b) => new BigNumber(a).plus(b))
197 }
198 average() {
199 const summed = this.sum(...arguments);
200 const average = new BigNumber(summed).div(arguments.length);

Callers 3

averageMethod · 0.95
average.jsFile · 0.80
test.jsFile · 0.80

Calls 1

plusMethod · 0.80

Tested by

no test coverage detected