title: how to assign an array by value to another variable  javascript
body: <p>i have an array <code>channel_chunk</code> </p>
  
  <pre><code>var channel = "global/private/user/updates/user_following/publisher_id/subcriber_id";
  
  channel_chunk = channel.split("/"),
  </code></pre>
  
  <p>and i assign this array to another variable</p>
  
  <pre><code>var new_arr =  channel_chunk ;
  </code></pre>
  
  <p>the problem is </p>
  
  <p>when i changed </p>
  
  <pre><code>new_arr[0]  = "test";
  </code></pre>
  
  <p><code>channel_chunk[0]</code> also becomes <code>test</code></p>
  
  <p>so i think it is passed by reference when i am assigning , i want to assign <code>channel_chunk</code> by value to <code>new_arr</code> .</p>
  
  <p>i know <code>jQuery.extend</code>  will help. but i am using pure JavaScript in this case , so i can not use it , is there a built in function to do this in JavaScript . please help............</p>