To clone an object, you can use Object.assign(), which creates a shallow copy of the original object.