title: Javascript split array
body: <p>I have a JavaScript array which contain the staff's Chinese and English names.</p>
  
  <p>Example:</p>
  
  <pre><code>XXX MA Yo-Yo
  </code></pre>
  
  <p>Where <code>XXX</code> represents the Chinese name: <code>馬友友</code>.</p>
  
  <p>I want to split this into two parts by using the 1st space <code>" "</code> as an indicator. </p>
  
  <pre><code>for (i = 0; i &lt; /* ... */)
  {
      w_temp = arr[i];
      w_name = w_temp[1].split(' ', 1);
  
      /* ... */
  }
  </code></pre>
  
  <p><code>w_name[0]</code> successfully returns <code>馬友友</code>. But <code>w_name[1]</code> returns <code>undefined</code>, which cannot return <code>MA Yo-Yo</code>.</p>
  
  <p>How can I split it into two parts?</p>