lastArrayEach.d.ts 809 B

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