I\'ve written the following JavaScript:
var myArray = [\'a\', \'b\', \'c\']; var copyOfMyArray = myArray; copyOfMyArray.splice(0, 1); alert(myArray); // aler
You can add some error handling depending on your cases and use something similar to the following function to solve the issue. Please comment for any bugs / issues / efficiency ideas.
function CopyAnArray (ari1) { var mxx4 = []; for (var i=0;i