mean.d.ts 359 B

123456789101112131415
  1. /**
  2. * 求平均值函数
  3. * @param array 对象/数组
  4. * @param iterate 回调
  5. * @param context 上下文
  6. */
  7. export declare function mean<T>(obj: T[], iterate?: string | number | ((item: T, index: number, list: T[]) => any), context?: any): number;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. mean: typeof mean;
  11. }
  12. }
  13. export default mean