mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
refactor: common to ts
This commit is contained in:
3
src/common/libs/uidGen.ts
Normal file
3
src/common/libs/uidGen.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function uidGen (prefix?: string) {
|
||||
return (prefix ? `${prefix}:` : '') + Math.random().toString(36).substr(2, 9).toUpperCase();
|
||||
}
|
Reference in New Issue
Block a user