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
You can use Object.assign() but be aware of browser support.
Object.assign()
More info here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign.
Example:
myObjTwo = Object.assign({}, myObjOne);