title: How do I shift an array of items up by 4 places in Javascript
body: <p>How do I shift an array of items up by 4 places in Javascript?</p>
  
  <p>I have the following string array:</p>
  
  <pre><code>var array1 = ["t0","t1","t2","t3","t4","t5"];
  </code></pre>
  
  <p>I need a function convert "array1" to result in:</p>
  
  <pre><code>// Note how "t0" moves to the fourth position for example
  var array2 = ["t3","t4","t5","t0","t1","t2"];  
  </code></pre>
  
  <p>Thanks in advance.</p>