I need to copy one array to another -- NOT copy a reference to the array...  

For example:
array1 = array2 will simply copy a reference to array2 into array1.

I want to do something like this:
array1 = new Array(array2).

Of course, that doesn't work...  It simply creates a blank array that's 
pre-allocated to be the length of whatever array2's length was...  (At least 
that's what I think is going on...)

Anyway -- how do I copy one array to another, without looping through the 
entire array?


Reply via email to