Javascript iterate over derived array
<p>I'm pretty shocked I can't find an answer to this (maybe there isn't one).  Suppose I want to iterate over an array one time.  I don't to have to create a variable to iterate with, but it seems that that's what I have to do.  Ideally, I'd be able to do something like this:</p>

<pre><code>for (key, val in 'one two three'.split(' ')) {
   console.log(val);
}
</code></pre>

<p>However, it seems that you can only get the <em>keys</em> from javascript's <code>for..in</code> syntax.  Is there any way to iterate over that array without storing it to a variable first?</p>
