Atur variabel ke objek tanpa mengedit objek lama JS

var newObject = Object.assign({}, myObj);
Vitus