Last updated 4 years ago
Was this helpful?
const getAverage = (arr) => Math.floor(arr.reduce((acc, cur) => acc + cur) / arr.length);