title: Copy java script array to another array
body: <p>I have an array <code>arr = [2,4];</code> I want to copy this array to another array <code>coppyArray = [2,4];</code> . Now I have 2 conditions to fulfill.</p>
  
  <ol>
  <li><p><code>coppyArray[i].value() == arr[i]</code></p></li>
  <li><p><code>coppyArray.hasOwnProperty('value')</code> equal to <code>false</code>;</p></li>
  </ol>
  
  <p>I was using <code>const coppyArray= [...arr];</code> but no luck. Can anybody please suggest how to achieve those condition using javascript or ES.  </p>