Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Last active November 17, 2020 19:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sethdavis512/cd6d3217e81135c4437f823065c75829 to your computer and use it in GitHub Desktop.
const toConstant = (str: string): string => str.replace(/\s+/g, '_').toUpperCase();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment