Created
September 14, 2016 16:17
-
-
Save jccovey/af9ecebd5c8c266882f8c53ca07db7c1 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 separateWords(stringVal) /* returns string */ { | |
return stringVal.split(/(?=[A-Z])/).join(' '); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment