I have an array of objects that is an input. Lets call it content.
content
When trying to deep copy it, it still has a reference to the previous array.
This is working for me:
this.listCopy = Object.assign([], this.list);