Created
October 14, 2019 17:14
-
-
Save marktellez/53719f87c11a8e07f6f050f556fec020 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 toSnakeCase(s) { | |
return s.split("_").map((s, i) => i > 0 ? s.slice(0,1).toUpperCase() + s.slice(1, s.length) : s).join("") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment