5 lines
179 B
TypeScript
5 lines
179 B
TypeScript
export function uniqueId() {
|
|
const timestamp = Date.now().toString(36);
|
|
const randomPart = Math.random().toString(36).substring(2, 9);
|
|
return `${timestamp}${randomPart}`;
|
|
}
|