One of the many ways is to use spread operator.
const obj3 = {...obj1}
You can also use Object.assing() for shallow copy.
const shallowCopy = Object.assign({}, obj1);
For more information please have a look at this.
Hope, this helps.