TypeScriptObjectspread

Merges objects using the spread syntax.

Syntax

const merged = { ...obj1, ...obj2 }