@lntvow/utils 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ export declare interface GenerateRandomStringOptions {
|
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* @description 获取数组中的随机元素
|
|
165
|
-
* @example getRandomItem([1,2,3]) => 2
|
|
165
|
+
* @example getRandomItem([0, 1, 2, 3, 4]) => 2
|
|
166
166
|
*/
|
|
167
167
|
export declare function getRandomItem<T>(list: T[]): T;
|
|
168
168
|
|