Created
January 14, 2020 21:53
-
-
Save owain68/1c053f0d03e5ac1e6a85d14a4330179d to your computer and use it in GitHub Desktop.
name2code for Kentico cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const name2code = (name: string) => { | |
return name.toLowerCase().replace(/[^a-z0-9_]/g, '_') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment