Skip to content

Instantly share code, notes, and snippets.

@bynaki
Last active February 13, 2024 06:10
Show Gist options
  • Save bynaki/fcd46c09e0315d4dd839 to your computer and use it in GitHub Desktop.
Save bynaki/fcd46c09e0315d4dd839 to your computer and use it in GitHub Desktop.
JavaScript :: 유일한 ID 만들기.

JavaScript :: 유일한 ID 만들기.

var newID = function () {
  return Math.random().toString(36).substr(2, 16);
}
console.log(newID());
{"noteId":"fcd46c09e0315d4dd839","main":"generate-id.md","title":"JavaScript :: 유일한 ID 만들기."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment