Javascript String classize()

Description

Javascript String classize()

String.prototype.classize = function() {
  words = this.split(' ');
  
  for(i in words)
    words[i] = words[i].capitalize();/*from www. j a v a 2s. c om*/

  return words.join('');  
}



PreviousNext

Related