Skip to content

petite-utils • Docs


函数: randomStr() ​

randomStr(min?, max?, startLetter?): string

参数 ​

参数名类型默认值描述
min?string | number7最小长度
max?string | number36最大长度
startLetter?booleantrue是否需要字母开头

返回值 ​

string

源码 ​

utils/randomStr.ts:17

Released under the MIT License.