Skip to content

Instantly share code, notes, and snippets.

@sethdavis512
Last active November 17, 2020 19:57
Embed
What would you like to do?
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