Created
September 6, 2020 15:47
-
-
Save luislobo14rap/90d7bb358c1123f907dd7b8ae02026f3 to your computer and use it in GitHub Desktop.
capitalize.js
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.js v1 | |
function capitalize(text){ | |
return text.replace(/\w/g, function(match){ | |
return match.toUpperCase(); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment