1
This commit is contained in:
20
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/arrayLastIndexOf.d.ts
vendored
Normal file
20
20220330_Vote/Ewide.Web.Entry/wwwroot/lib/xe-utils/arrayLastIndexOf.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* 从最后开始的索引值,返回数组第一个索引值
|
||||
* @param list 数组
|
||||
* @param val 值
|
||||
*/
|
||||
export declare function arrayLastIndexOf<T>(list: ArrayLike<T>, val: any): number;
|
||||
export declare function arrayLastIndexOf(list: any[], val: any): number;
|
||||
|
||||
declare module './ctor' {
|
||||
interface XEUtilsMethods {
|
||||
/**
|
||||
* 从最后开始的索引值,返回数组第一个索引值
|
||||
* @param list 数组
|
||||
* @param val 值
|
||||
*/
|
||||
arrayLastIndexOf: typeof arrayLastIndexOf;
|
||||
}
|
||||
}
|
||||
|
||||
export default arrayLastIndexOf
|
||||
Reference in New Issue
Block a user