Created
October 18, 2019 05:38
-
-
Save damithg-dev/44ad9ba3e7ce6e06d391859959c635cd 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
capitalizeEveryWord = str => str.replace(/\b[a-z]/g, char => char.toUpperCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment