Skip to content

Instantly share code, notes, and snippets.

@SteGriff
Created August 26, 2021 13:09
Show Gist options
  • Save SteGriff/665494c2bfb411ed9236aa85f3c68556 to your computer and use it in GitHub Desktop.
Save SteGriff/665494c2bfb411ed9236aa85f3c68556 to your computer and use it in GitHub Desktop.
JS String toSentenceCase
String.prototype.toSentenceCase = function(){ return this.slice(0,1).toUpperCase() + this.slice(1) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment