2020-08-14 18:07:29 +02:00
|
|
|
/**
|
|
|
|
* @export
|
|
|
|
* @param {String} [prefix]
|
|
|
|
* @returns {String} Unique ID
|
|
|
|
*/
|
|
|
|
export function uidGen (prefix) {
|
|
|
|
return (prefix ? `${prefix}:` : '') + Math.random().toString(36).substr(2, 9).toUpperCase();
|
2022-04-22 12:16:02 +02:00
|
|
|
}
|