Created
April 16, 2017 01:57
-
-
Save tilfin/fd20145c3721c000214520be81d07b0d to your computer and use it in GitHub Desktop.
Snake to Camel
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 snakeToCamel(s) { | |
return s.replace(/(\-\w)/g, function(m){return m[1].toUpperCase();}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment