string
string(
length,alphabet?):string
Defined in: src/global/strings.ts:16
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(12); // "yYwec14FcPKc"string(6, "ABCDEF0123456789"); // "3E9A1C"string(4, ["cat", "dog"]); // "dogcatdogdog"