Object has its own reference in memory to destroy it you can use JSON. parse (JSON. stringify(object)) no matter how nested key it has, it will remove the reference of the object and you will get a new object. This concept is called a deep copy or deep clone.9 Şub 2018