Quick javascript split question
<p>Just a quick question regarding the split function</p>

<p>How can I split my string at every 2nd space?</p>

<pre><code>myArray = 'This is a sample sentence that I am using'
myArray = myString.split(" ");
</code></pre>

<p>I would like to create a array like this</p>

<pre>This is a &lt; 2 spaces
sample sentence that &lt; 2 spaces
that I am  &lt; 2 spaces</pre>

<p>and if the last word is not a space how would I handle this...?</p>

<p>any help would be appreciated</p>
