lastIndexOf.d.ts 368 B

123456789101112131415
  1. /**
  2. * 从最后开始的索引值,返回对象第一个索引值
  3. * @param obj 对象
  4. * @param val 值
  5. */
  6. export declare function lastIndexOf(obj: any[], val: any): number;
  7. export declare function lastIndexOf(obj: any, val: any): number;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. lastIndexOf: typeof lastIndexOf;
  11. }
  12. }
  13. export default lastIndexOf