You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
760 B
18 lines
760 B
/**
|
|
* 通用迭代器,从最后开始迭代
|
|
* @param list 对象
|
|
* @param iterate 回调
|
|
* @param context 上下文
|
|
*/
|
|
export declare function lastEach<T, C>(list: T[], iterate: (this: C, item: T, index: number, list: T) => void, context?: C): void;
|
|
export declare function lastEach<T, C>(obj: T, iterate: (this: C, item: any, key: string, obj: T) => void, context?: C): void;
|
|
export declare function lastEach<C>(obj: any[], iterate: (this: C, item: any, key: string, obj: any[]) => void, context?: C): void;
|
|
export declare function lastEach<C>(obj: any, iterate: (this: C, item: any, key: string, obj: any) => void, context?: C): void;
|
|
|
|
declare module './ctor' {
|
|
interface XEUtilsMethods {
|
|
lastEach: typeof lastEach;
|
|
}
|
|
}
|
|
|
|
export default lastEach
|
|
|