Generates a unique ID using random numbers. If a prefix is given, the ID is appended to it and returned as a string.
Returns the numeric or string ID.
uniqueId()// 3445556877uniqueId('user_')// 'user_1033763188'
Optional
The id prefix.
Generated using TypeDoc
Generates a unique ID using random numbers. If a prefix is given, the ID is appended to it and returned as a string.
Returns
Returns the numeric or string ID.
Example