1
This commit is contained in:
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/sum.d.ts
vendored
Normal file
15
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/sum.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* 求和函数,将数值相加
|
||||
* @param obj 对象/数组
|
||||
* @param iterate 回调
|
||||
* @param context 上下文
|
||||
*/
|
||||
export declare function sum<T, C>(obj: T[], iterate?: string | number | ((this: C, item: T, index: number, list: T[]) => number), context?: C): number;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
sum: typeof sum;
|
||||
}
|
||||
}
|
||||
|
||||
export default sum
|
||||
Reference in New Issue
Block a user