12345678910111213141516171819202122232425 |
- import { XEUtilsMethods } from '../xe-utils'
- export declare function countByIterate(item: any, index: any, obj: any): any;
- /**
- * 集合分组统计,返回各组中对象的数量统计
- * @param obj 对象
- * @param iteratee 回调/属性
- * @param context 上下文
- */
- export declare function countBy(obj: any, iteratee: typeof countByIterate, context?: any): any;
- declare module '../xe-utils' {
- interface XEUtilsMethods {
- /**
- * 集合分组统计,返回各组中对象的数量统计
- * @param obj 对象
- * @param iteratee 回调/属性
- * @param context 上下文
- */
- countBy: typeof countBy;
- }
- }
- export default countBy
|