Spaces:
Runtime error
Runtime error
export function sum(nums: number[]): number { | |
return nums.reduce((a, b) => a + b, 0); | |
} | |
export function sum(nums: number[]): number { | |
return nums.reduce((a, b) => a + b, 0); | |
} | |