Created
September 28, 2011 07:54
-
-
Save ToQoz/1247279 to your computer and use it in GitHub Desktop.
javascriptでrouwerCamelCaseからsnake_caseに変える
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
function convertSnakeToCamelCase(str) { | |
return str.replace(/_([a-z])/g, function(){return RegExp.$1.toUpperCase()}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment