Javascript String properName()
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*/