arrayIndexOf.d.ts 360 B

123456789101112131415
  1. /**
  2. * 返回数组第一个索引值
  3. * @param list 数组
  4. * @param val 值
  5. */
  6. export declare function arrayIndexOf<T>(list: ArrayLike<T>, val: any): number;
  7. export declare function arrayIndexOf(list: any[], val: any): number;
  8. declare module './ctor' {
  9. interface XEUtilsMethods {
  10. arrayIndexOf: typeof arrayIndexOf;
  11. }
  12. }
  13. export default arrayIndexOf