function arraySum(arr: Array): number { return arr.reduce((accumulator, current) => accumulator + current, 0); } export { arraySum };