I have two arrays
arr1 = new Array();
arr2 = new Array();
If i do the following:
arr1 = arr2;
in javascript is this assigning by value or by reference? What i mean is, after doing the above, will further changes in arr2 affect arr1’s content and also the other way around?
Here is a clone function I wrote…