Which method is used to merge two or more objects into a target object?

JavaScript Associate Easy

JavaScript Associate — Easy

Which method is used to merge two or more objects into a target object?

Key points

  • Object.assign() modifies the target object directly
  • It can handle multiple source objects
  • Other options are not recognized JavaScript methods
  • The method name is specific and case-sensitive

Ready to go further?

Related questions