UNPKG

liquor-tree-withoutdragndrop

Version:
14 lines (10 loc) 265 B
// it is not genuine GUIDs function s4 () { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1) } export default function uuidV4 () { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4() }