UNPKG

eyzy-tree

Version:
11 lines (8 loc) 179 B
function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1) } export default function uuid() { return s4() + '-' + s4() }