🏠计算sumOn this pagesumsum 计算数组的和🍱 参数array - numbers🔥 返回值number - 平均值🚀 示例import { sum } from 'atools-js';sum([1, 2, 3, 4, 5]); // 15💡 源码source code/atools/_calc/sum.tsexport const sum = (numbers: number[]): number => { return numbers.reduce((acc, curr) => acc + curr, 0);};