types.js/String.js
Alex A. Naanou 1306ec21b3 minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2020-10-06 01:32:33 +03:00

24 lines
730 B
JavaScript

/**********************************************************************
*
*
*
**********************************************/ /* c8 ignore next 2 */
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
(function(require){ var module={} // make module AMD/node compatible...
/*********************************************************************/
/*********************************************************************/
String.prototype.capitalize = function(){
return this == '' ?
this
: this[0].toUpperCase() + this.slice(1) }
/**********************************************************************
* vim:set ts=4 sw=4 : */ return module })