What is the purpose of the Object.assign() method in JavaScript?
Object.assign()
Merges two or more objects into a single object.
Assigns a new constructor function to an object.
Assigns a new prototype to an object.
Copies the values of all enumerable properties from one or more source objects to a target object.