String.prototype.ucwords() - mkloubert/jsToolbox GitHub Wiki
String.prototype.ucwords() method
Uppercase the first character of each word in that string.
Syntax
String.prototype.ucwords();
Result
The new string.
Examples
// 'Tm + Mk'
var res = 'TM + MK'.ucwords();