Javascript String properName()

Description

Javascript String properName()


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

module.exports = String;/*from   w  ww .  j  ava2 s.co m*/



PreviousNext

Related