sum
Find the sum of a number.
function sum(...nums: number[] | number[][]): number;
Example
sum(1, 2, 3); // 6
sum(...[1, 2, 3]); // 6
sum([1, 2, 3]); // 6
Find the sum of a number.
function sum(...nums: number[] | number[][]): number;
sum(1, 2, 3); // 6
sum(...[1, 2, 3]); // 6
sum([1, 2, 3]); // 6