var x = {myProp: "value"}; var xClone = Object.assign({}, x); //Obs: nested objects are still copied as reference.