Refactor
This commit is contained in:
parent
41d4665e49
commit
969ccac690
24 changed files with 236 additions and 287 deletions
2
src/framework/helper/sum.ts
Normal file
2
src/framework/helper/sum.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export const sum = (list: ArrayLike<number>): number =>
|
||||
Array.prototype.reduce.call(list, (a, sum) => a + sum, 0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue