Yes. This is a complex process, and the best way to do it is by using a spread operator.

BY Best Interview Question ON 13 Jan 2019