toArray.d.ts 298 B

1234567891011121314
  1. /**
  2. * 将对象或者伪数组转为新数组
  3. * @param list 对象/数组
  4. */
  5. export declare function toArray<T>(list: T[]): T[];
  6. export declare function toArray(list: any): any[];
  7. declare module './ctor' {
  8. interface XEUtilsMethods {
  9. toArray: typeof toArray;
  10. }
  11. }
  12. export default toArray