Created
August 5, 2017 10:39
-
-
Save bitkorn/6c7157864b9418f3277a83be4674cdca to your computer and use it in GitHub Desktop.
make the first character to upper letter
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 stringToUpperFirst(string) { | |
return string.charAt(0).toUpperCase() + string.slice(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment