Duplicated from huggingchat/chat-ui
ad02fa3
1
2
3
4
export function sum(nums: number[]): number { return nums.reduce((a, b) => a + b, 0); }