- Preparing search index...
- The search index is not available
@3r/tool
Methods
Static
getDisorganizeArray
- getDisorganizeArray<T>(array: T[]): T[]
-
Returns T[]
Static
getRandomIndexByWeight
- getRandomIndexByWeight(arr: [], weightKey?: string): undefined | number
-
Parameters
-
arr: []
-
weightKey: string = 'weight'
Returns undefined | number
Static
getRandomInt
- getRandomInt(min: number, max: number): number
-
Returns number
Static
getRandomStr
- getRandomStr(len: number, str?: string | GetRandomStrEnum, ignore?: string): string
-
Parameters
-
len: number
-
str: string | GetRandomStrEnum = GetRandomStrEnum.LargeSmallNumber
-
ignore: string = ''
Returns string
Static
uuid
- uuid(): string
-
Returns string
打乱数组
Returns
打乱后的数组