Javascript ucwords() Replacement
Wednesday, July 13th, 2005Since PHP is the primary language I use, I’m most familiar with all of it’s wonderful built-in functions, like ucwords(). I’ve used various code for a Javascript equivalent, and everytime I wind up with about 20 lines to do one simple thing. But I pieced this together from several sources today:
String.prototype.toProperCase = function(){
[…]