Global.String.prototype.titleize ()
transforms the first n characters of each word in a string to uppercase

  • Returns
    String the resulting string
Sourcecode in /home/hannes/helma/modules/core/String.js:
307:   String.prototype.titleize = function() {
308:       var parts = this.split(" ");
309:       res.push();
310:       for (var i in parts) {
311:           res.write(parts[i].capitalize());
312:           if (i < parts.length-1)
313:               res.write(" ");
314:       }
315:       return res.pop();
316:  }