Created
August 26, 2021 13:09
-
-
Save SteGriff/665494c2bfb411ed9236aa85f3c68556 to your computer and use it in GitHub Desktop.
JS String toSentenceCase
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
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