Created
January 20, 2020 09:57
-
-
Save vijjusri14/4029829f548df1e3a1e615bfdad8b6a3 to your computer and use it in GitHub Desktop.
Convert to camel case
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
| CamelCase(str) { | |
| return str.replace(/(?:^|\s)\w/g, match => match.toUpperCase()); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment