Created
September 25, 2019 03:55
-
-
Save jerolan/58bf5be4e8ad0c089d09e8a9d16fa691 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 capitalize(word) { | |
return word.replace(word[0], word[0].toUpperCase()) | |
} | |
function letterCapitalize(str) { | |
return str.split(" ").map(capitalize).join(" "); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment