2024-04-26 15:43:27 +02:00

4 lines
84 B
TypeScript

export function add(...args: number[]) {
return args.reduce((a, b) => a + b, 0)
}