Skip to content

Instantly share code, notes, and snippets.

@daniellmb
Created April 7, 2015 18:56
Show Gist options
  • Save daniellmb/ebda79f5f180b64eb260 to your computer and use it in GitHub Desktop.
Save daniellmb/ebda79f5f180b64eb260 to your computer and use it in GitHub Desktop.

Revisions

  1. daniellmb created this gist Apr 7, 2015.
    1 change: 1 addition & 0 deletions Camelcase2Hyphencase.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    'wowConvertCamelcaseToHyphencaseInJustSeventyBytes'.replace(/([a-zA-Z])(?=[A-Z])/g, '$1-').toLowerCase();