string
string(
length,alphabet?):string
Defined in: src/secure.ts:307
A random string over alphabet (default alphanumeric).
Parameters
Section titled “Parameters”length
Section titled “length”number
alphabet?
Section titled “alphabet?”string | ArrayLike<string>
Returns
Section titled “Returns”string
Example
Section titled “Example”string(32); // "yYwec14FcPKc0qobI8ngAxUr7mQvE2Lp"