I am confused. I create a copy from myObjOne, than i delete an entry from myObjOne and JS delete the entry in my copy(myObjTwo) too? But w
myObjOne
myObjTwo
With ES6, use the spread operator.
myObjTwo = {...myObjOne}
The spread operator in es6 is just an ellipsis. It creates a copy of the original, even if the original is destroyed