BetterAPI's picture
Duplicate from huggingchat/chat-ui
1ef0413
raw
history blame
89 Bytes
export function sum(nums: number[]): number {
return nums.reduce((a, b) => a + b, 0);
}