'What is best way to merge two or more objects in javascript?

What is best way to merge two or more objects in javascripts?

If there are objects e.g. obj1, obj2 , obj3 so on, need a best possible way to merge those objects.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source