Posted By

remilauber on 03/18/09


Tagged

ucfirst


Versions (?)

ucFirst


 / Published in: JavaScript
 

  1. String.prototype.ucFirst = function()
  2. {
  3. return this.charAt(0).toUpperCase() + this.substring(1);
  4. }

Report this snippet  

You need to login to post a comment.