You've already forked pages
forked from didirus/AstralRinth
7 lines
113 B
TypeScript
7 lines
113 B
TypeScript
let idCounter = 0
|
|
|
|
export function uniqueId(prefix = ''): string {
|
|
const id = ++idCounter
|
|
return prefix + id
|
|
}
|