0
GGGiovanny Gongora
Calculates the average of two or more numbers.
0 Comments
const average = (...nums: Array<number>) => nums.reduce((acc, val) => acc + val, 0) / nums.length;