title: Splice temporary array will modify the main array
body: <p>Is it normal that when I use splice on temp, mainArray is also modified ?</p>
  
  <pre><code>console.log(mainArray);
  
  var temp = mainArray;
  
  temp.airfares.splice(index, 1);
  </code></pre>