21dd449
1
2
3
4
5
6
7
/** * Sum of elements in array */ export function sum(arr: number[]): number { return arr.reduce((a, b) => a + b, 0); }