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