Created
June 18, 2018 04:16
-
-
Save kunigami/06c3e9da9ad8e2008a19e62f9a138311 to your computer and use it in GitHub Desktop.
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
function normalize(s) { | |
s = s.toLowerCase(); | |
s = s.trim(); | |
s = s.replace(/\s/g, "_"); | |
return s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment