Friday, 20 November 2020

Create unique string in One Line on Javascript

let uid = () => {

return Date.now().toString(36)+performance.now().toString(36) + Math.random().toString(36).substr(2);

};
    
let newUid = uid();

No comments:

Post a Comment