mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
4 lines
145 B
TypeScript
4 lines
145 B
TypeScript
export function uidGen (prefix?: string) {
|
|
return (prefix ? `${prefix}:` : '') + Math.random().toString(36).substring(2, 11).toUpperCase();
|
|
}
|