Javascript String caps()

Description

Javascript String caps()

/* Capitalize *//*from   w w w  .  ja  va 2s  .  c om*/
String.prototype.caps = function() {
  return this.charAt(0).toUpperCase() + this.substring(1);
};



PreviousNext

Related