const makeGUID = () => {
const s4 = () => Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
}
> makeGUID();
< "3e41f370-a0ce-b12b-6b88-eb0e88ff36ad"
> makeGUID();
< "91837567-aeea-bdea-682d-5734cb138a46"