Skip to content

Instantly share code, notes, and snippets.

@paatsinsuwan
Created August 16, 2011 19:24
Show Gist options
  • Save paatsinsuwan/1149920 to your computer and use it in GitHub Desktop.
Save paatsinsuwan/1149920 to your computer and use it in GitHub Desktop.
Javascript sentence case
String.prototype.sentenceCase = function(){
return this.substring(0,1).toUpperCase() + this.substring(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment