jprichardson/string.js — pull request #88 by ultimatedelman (2014-05-23 02:38:29+00:00)
Title: Add .titleCase()

Capitalizes first character of each word, including hyphenated words. Is not smart enough to recognize articles, however.

Here's a test case: http://jsfiddle.net/edelman/DJvUj/
And with the minified file: http://jsfiddle.net/edelman/DJvUj/1/