countBy.d.ts 663 B

12345678910111213141516171819202122232425
  1. import { XEUtilsMethods } from '../xe-utils'
  2. export declare function countByIterate(item: any, index: any, obj: any): any;
  3. /**
  4. * 集合分组统计,返回各组中对象的数量统计
  5. * @param obj 对象
  6. * @param iteratee 回调/属性
  7. * @param context 上下文
  8. */
  9. export declare function countBy(obj: any, iteratee: typeof countByIterate, context?: any): any;
  10. declare module '../xe-utils' {
  11. interface XEUtilsMethods {
  12. /**
  13. * 集合分组统计,返回各组中对象的数量统计
  14. * @param obj 对象
  15. * @param iteratee 回调/属性
  16. * @param context 上下文
  17. */
  18. countBy: typeof countBy;
  19. }
  20. }
  21. export default countBy