Skip to content

Instantly share code, notes, and snippets.

@di3
Created May 16, 2019 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save di3/98a61645da22cf39ad5aa0ae5e7c8994 to your computer and use it in GitHub Desktop.
Save di3/98a61645da22cf39ad5aa0ae5e7c8994 to your computer and use it in GitHub Desktop.
export default (val) => ("0000000" + (val >>> 0).toString(16)).substr(-8);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment