shuffle.d.ts 256 B

12345678910111213
  1. /**
  2. * 将一个数组随机打乱,返回一个新的数组
  3. * @param list 数组
  4. */
  5. export declare function shuffle<T>(list: T[]): T[];
  6. declare module './ctor' {
  7. interface XEUtilsMethods {
  8. shuffle: typeof shuffle;
  9. }
  10. }
  11. export default shuffle