first.d.ts 276 B

1234567891011121314
  1. /**
  2. * 获取对象第一个值
  3. * @param list 数组
  4. */
  5. export declare function first<T>(list: T[] | ArrayLike<T>): T;
  6. export declare function first(obj: any): any;
  7. declare module './ctor' {
  8. interface XEUtilsMethods {
  9. first: typeof first;
  10. }
  11. }
  12. export default first