title: Copy substring of string array into new array in Javascript
body: <p>I am looking to copy the substring of a string array into a new array without creating references. This is giving me a headache yet this should be fairly simple.</p>
  
  <p>I tried <code>NewArray[n] = OldArray[n].substr(x,y).slice(0)</code> inside a loop and does not work. (I need to do a <code>NewArray.sort()</code> afterwards).</p>
  
  <p>For the sake of example, say I got an <code>OldArray</code> with 2 elements:</p>
  
  <pre><code>['River', 'Lake']
  </code></pre>
  
  <p>I want the new array to be made of the first 2 characters (substring) of the old one such that:</p>
  
  <pre><code>['Ri', 'La']
  </code></pre>