8 lines
157 B
TypeScript
8 lines
157 B
TypeScript
|
const now = +new Date();
|
||
|
let index = 0;
|
||
|
|
||
|
export default function uid() {
|
||
|
// eslint-disable-next-line no-plusplus
|
||
|
return `vc-upload-${now}-${++index}`;
|
||
|
}
|