Is there an elegant way to chain join() after a foreach()?
<p>I am trying to write something like this:</p>

<pre><code>DOMElement
 .innerHTML
 .toLowerCase()
 .split(' ')
 .forEach(function(word) {
   return word.charAt(0).toUpperCase() + word.slice(1);
 })
 .join(' ')
</code></pre>

<p>Since <code>join</code> needs to receive an <code>array</code>, is there an elegant way to provide it one?</p>