Using the spread operator you can merge objects. This example uses two objects, but the syntax is the same for more. Note that duplicate keys will be overridden.
Thanks Laurie Barth. Its very useful and handy. Thanks for sharing.... :)
Thanks for sharing and easy explaining.