Deep copying is affecting both the arrays
330
What is the most efficient way to deep clone an object in JavaScript?
111465
Why aren't copy constructors "chained" like default constructors and destructors?
117709
Copying one structure to another
13564
Python: deepcopy(list) vs new_list = old_list[:]
113622
Why does a large local array crash my program, but a global one doesn't?
82999
Object being squished when using object offset in array modifier
129122
how to do true deep copy for NSArray and NSDictionary with have nested arrays/dictionary?
22555
How to assign same Data to multiple object copies
38660
Deep copy of List
126579
Deep copying an NSArray
66336
Why copy constructor is not called in this case?
1607
List of lists changes reflected across sublists unexpectedly
154684
How can I make a deep copy in Objective-C?
31103
What's the difference between array_merge and array + array?
76995
Why can't I assign an array variable directly to another array variable with the '=' operator?
122528
How do I copy an object in Java?
2865
What's the difference between assignment operator and copy constructor?