/ Published in: JavaScript
Extends the string object to include ucFirst ala Perl ucfirst()
Expand |
Embed | Plain Text
String.prototype.ucFirst = function () { return this.substr(0,1).toUpperCase() + this.substr(1,this.length); };
You need to login to post a comment.
