Created
September 9, 2013 07:25
-
-
Save vdchristelle/6492442 to your computer and use it in GitHub Desktop.
capitalize only first letter of a string
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
// capitalize only first letter of a string | |
function capitaliseFirstLetter(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