4 lines
89 B
TypeScript
4 lines
89 B
TypeScript
export const sum = (...args: number[]) => {
|
|
return args.reduce((a, b) => a + b, 0);
|
|
};
|