You've already forked AstralRinth
forked from didirus/AstralRinth
Refactor folder structure
This commit is contained in:
6
src/utils/uniqueId.ts
Normal file
6
src/utils/uniqueId.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
let idCounter = 0
|
||||
|
||||
export function uniqueId(prefix = ''): string {
|
||||
const id = ++idCounter
|
||||
return prefix + id
|
||||
}
|
||||
Reference in New Issue
Block a user