UNPKG

@axinom/mosaic-ui

Version:

UI components for building Axinom Mosaic applications

11 lines (10 loc) 282 B
/** * A simple UUID generator. This is not a cryptographically secure generator. * @returns UUID */ export const uuid = (): string => { const url = URL.createObjectURL(new Blob()); const [id] = url.toString().split('/').reverse(); URL.revokeObjectURL(url); return id; };