Choose the right way to clone the object below:
const obj = { a: 'a', b: 'b' }
Object.assign((), obj)
{ ...obj}
Object. assign({}, obj)
{ obj }
Create a free account to access the full topic