Don't waste time assigning properties manually

Use Object.assign() or spread operator to assign properties to an object

objectsspread