Created
May 13, 2020 21:09
-
-
Save iceener/670077bc1606057fa2b825030d63a25d 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
// Uppercase first letter of a string | |
function ucFirst(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