vuestic-ui
Version:
Vue 3 UI Framework
12 lines (11 loc) • 332 B
JavaScript
let counter = 0;
const getRandomString = (stringLength = 4) => {
return Math.random().toString(36).substring(2, stringLength + 2);
};
const generateUniqueId = () => {
return `${getRandomString(8)}-${getRandomString(4)}-${getRandomString(4)}-${++counter}`;
};
export {
generateUniqueId as g
};
//# sourceMappingURL=uuid.js.map