mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
4 lines
84 B
TypeScript
4 lines
84 B
TypeScript
export function add(...args: number[]) {
|
|
return args.reduce((a, b) => a + b, 0)
|
|
}
|