Skip to content

Instantly share code, notes, and snippets.

@benjamingr
Created March 27, 2018 19:05
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 benjamingr/8fec077b5436846cc9c52be353238037 to your computer and use it in GitHub Desktop.
Save benjamingr/8fec077b5436846cc9c52be353238037 to your computer and use it in GitHub Desktop.
s=>`${s=s[0].toUpperCase()+s.slice(1).toLowerCase().replace(/y$/,'')}y Mc${s.replace(/e$/,``)}face`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment