How to Merge JavaScript Objects: Object.assign, Spread Syntax, and Practical Patterns | CodeTrail