12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = uid;
|
|
const now = +new Date();
|
|
let index = 0;
|
|
function uid() {
|
|
// eslint-disable-next-line no-plusplus
|
|
return `rc-upload-${now}-${++index}`;
|
|
} |