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.
Check this:
let cloned = source.map(x => Object.assign({}, x));