19 lines
851 B
TypeScript
19 lines
851 B
TypeScript
/**
|
|
* 数组迭代器,从最后开始迭代
|
|
* @param list 对象
|
|
* @param iterate 回调
|
|
* @param context 上下文
|
|
*/
|
|
export declare function lastArrayEach<T, C = any>(list: T[], iterate: (this: C, item: T, index: number, list: T[]) => void, context?: C): void;
|
|
export declare function lastArrayEach<T, C = any>(list: T, iterate: (this: C, item: any, index: number, list: T) => void, context?: C): void;
|
|
export declare function lastArrayEach<C = any>(list: any[], iterate: (this: C, item: any, index: number, list: any[]) => void, context?: C): void;
|
|
export declare function lastArrayEach<C = any>(list: any, iterate: (this: C, item: any, index: number, list: any) => void, context?: C): void;
|
|
|
|
declare module './ctor' {
|
|
interface XEUtilsMethods {
|
|
lastArrayEach: typeof lastArrayEach;
|
|
}
|
|
}
|
|
|
|
export default lastArrayEach
|