Duplicated from mithril-security/blind_chat
faca43f
1
2
3
4
export function sum(nums: number[]): number { return nums.reduce((a, b) => a + b, 0); }