Skip to content

Instantly share code, notes, and snippets.

@ToQoz
Created September 28, 2011 07:54
Show Gist options
  • Save ToQoz/1247279 to your computer and use it in GitHub Desktop.
Save ToQoz/1247279 to your computer and use it in GitHub Desktop.
javascriptでrouwerCamelCaseからsnake_caseに変える
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