Last active
April 13, 2017 06:50
-
-
Save latenssi/a104399894c55e6f12196310e2036f41 to your computer and use it in GitHub Desktop.
Hyphencase to Camelcase
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
const hyphencaseToCamelcase = s => s.replace(/(\-\w)/g, m => m[1].toUpperCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment