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