title: Modify an array with split with JavaScript
body: <p>Below is my code:
  I am trying to get the 2nd item in the array after split(which will always be 3 digit)
  and trying to separate that with &quot;-&quot; by 1st and second third character.
  So, '021' should become '0', '21' and be attached to the same array.</p>
  <pre><code>var q = {f_seq: &quot;14-021-1721307&quot;};
  p = q.f_seq.split('-');
  p[1] = p[1].substr(0, 1);
  p[2] = p[2].substr(1, 2);
  console.log(p); 
  </code></pre>
  <p>current output:</p>
  <pre><code>['14', '0', '72']
  </code></pre>
  <p>expected output:</p>
  <pre><code>['14', '0', '21', '1721307']
  </code></pre>