Pinned Loading
-
-
-
-
-
javascript ObjectId generator
javascript ObjectId generator 1var mongoObjectId = function () {
2var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
3return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
4return (Math.random() * 16 | 0).toString(16);
5}).toLowerCase();
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.