arrayEach.d.ts 505 B

12345678910111213141516
  1. /**
  2. * 数组迭代器
  3. * @param list 对象
  4. * @param iterate 回调
  5. * @param context 上下文
  6. */
  7. export declare function arrayEach<T, C>(list: T[] | ArrayLike<T>, iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void;
  8. export declare function arrayEach<C>(obj: any[], iterate: (this: C, item: any, index: number, obj: any) => void, context?: C): void;
  9. declare module './ctor' {
  10. interface XEUtilsMethods {
  11. arrayEach: typeof arrayEach;
  12. }
  13. }
  14. export default arrayEach