I can't seem to clone an array without the changes in one being reflected in the other. I've tried Object.assign, slice, Array,from, all to no avail
330
What is the most efficient way to deep clone an object in JavaScript?
118660
Java: recommended solution for deep cloning/copying an instance
16765
Copy transforms from one object to another
142030
Remove duplicates from array and save it to another one
15622
How do I remove objects from an array in Java?
121698
replicating elements in list
46895
How do I create a copy of an object in PHP?
25178
How do I clone a generic list in C#?
140783
Why to override clone method in Java
119728
How to remove all duplicates from an array of objects?
2011
Shallow-clone a Map or Set
95776
Why copy constructor not invoked here
70349
How do I convert an object to an array?
88197
Python - Using the Multiply Operator to Create Copies of Objects in Lists
65281
clone() vs copy constructor vs factory method?
2863
How do I correctly clone a JavaScript object?
68372
How to copy an object in Objective-C