objectEach.d.ts 467 B

1234567891011121314151617
  1. /**
  2. * 对象迭代器
  3. * @param obj 对象
  4. * @param iterate 回调
  5. * @param context 上下文
  6. */
  7. export declare function objectEach<T>(obj: T, iterate: (item: any, key: string, obj: T) => void, context ?: any): void;
  8. export declare function objectEach(obj: any, iterate: (item: any, key: string, obj: any) => void, context ?: any): void;
  9. declare module './ctor' {
  10. interface XEUtilsMethods {
  11. objectEach: typeof objectEach;
  12. }
  13. }
  14. export default objectEach