Skip to content

Instantly share code, notes, and snippets.

@fitsum
Created February 16, 2016 19:34
Show Gist options
  • Save fitsum/4bdb76532238169c8c83 to your computer and use it in GitHub Desktop.
Save fitsum/4bdb76532238169c8c83 to your computer and use it in GitHub Desktop.
add space between camel case loci
String.prototype.splitCamel = function(){
return this.replace(/([a-z](?=[A-Z]))/g, '$1 ')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment