Javascript String prettyPrintName()

Description

Javascript String prettyPrintName()


String.prototype.prettyPrintName = function () {
  return this.charAt(0).toUpperCase() + this.slice(1).toLowerCase();
}



PreviousNext

Related