chat-ui / src /lib /utils /sum.ts
kokofixcomputers's picture coyotte508's picture
coyotte508 HF Staff
Duplicate from huggingchat/chat-ui
8b7ec8f
Raw History Blame Contribute Delete
89 Bytes
export function sum(nums: number[]): number {
return nums.reduce((a, b) => a + b, 0);
}