You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
359 B
16 lines
359 B
5 months ago
|
/**
|
||
|
* 求平均值函数
|
||
|
* @param array 对象/数组
|
||
|
* @param iterate 回调
|
||
|
* @param context 上下文
|
||
|
*/
|
||
|
export declare function mean<T>(obj: T[], iterate?: string | number | ((item: T, index: number, list: T[]) => any), context?: any): number;
|
||
|
|
||
|
declare module './ctor' {
|
||
|
interface XEUtilsMethods {
|
||
|
mean: typeof mean;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default mean
|