Last active
April 22, 2020 09:17
-
-
Save yhau1989/870f10ccb896d28f0312d3bee6331878 to your computer and use it in GitHub Desktop.
Generar id único en JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const idUnic = () => { | |
let d = new Date(); | |
return `${d.getDate()}${d.getMonth()}${d.getFullYear()}${d.getHours()}${d.getMinutes()}${d.getSeconds()}${d.getMilliseconds()}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:)