dorseysen / One-Date-One-Question

this is a space for self-improvement of mine
1 stars 0 forks source link

2019-09-12:随机数应用 - 生成一串唯一且不重复的UUID。难度 ★ #128

Open dorseysen opened 5 years ago

dorseysen commented 5 years ago

// 2019-09-12:随机数应用 - 生成一串唯一且不重复的UUID
// 难度 ★
const createUUID = () => new Date().getTime().toString(32) + Math.floor(Math.random() * 999999).toString(32);

return createUUID();