chat-v4 / chat-ui /src /lib /utils /sum.ts
Матенков Андрей
Chat moved from github
39a2f10
raw
history blame contribute delete
89 Bytes
export function sum(nums: number[]): number {
return nums.reduce((a, b) => a + b, 0);
}