1
This commit is contained in:
23
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/findLast.d.ts
vendored
Normal file
23
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/findLast.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* 从右至左遍历,匹配最近的一条数据
|
||||
* @param array 数组
|
||||
* @param iterate 回调
|
||||
* @param context 上下文
|
||||
*/
|
||||
export declare function findLast<T, C>(array: T[], iterate: (this: C, item: T, index: number, list: T[]) => boolean, context?: C): T;
|
||||
|
||||
/**
|
||||
* 从右至左遍历,匹配最近的一条数据
|
||||
* @param obj 对象
|
||||
* @param iterate 回调
|
||||
* @param context 上下文
|
||||
*/
|
||||
export declare function findLast<T, C>(obj: T, iterate: (this: C, item: any, key: string, obj: T) => boolean, context?: C): any;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
findLast: typeof findLast;
|
||||
}
|
||||
}
|
||||
|
||||
export default findLast
|
||||
Reference in New Issue
Block a user