How to capitalize the first character of each word in a string in Javascript

1 · Josh Sherman · March 6, 2016, midnight
The other day I had posted on capitalizing the first letter of a string in Javascript. But what if you wanted to capitalize the first letter of every word? With PHP it’s just a simple call to ucwords and just as easy in Ruby and Python. To be able to......