Created
April 7, 2015 18:56
-
-
Save daniellmb/ebda79f5f180b64eb260 to your computer and use it in GitHub Desktop.
Convert Camelcase To Hyphencase In Just Seventy Bytes
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
'wowConvertCamelcaseToHyphencaseInJustSeventyBytes'.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment