UNPKG

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