Here we'll cover 'Object.assign', a new utility method that makes copying objects and object properties easier.

We'll cover the following

Object.assign is meant to assign properties from one object to another. The first parameter is the object that will have properties added to it. The next parameters are all objects whose properties will be placed onto the first object. The return value is the object that was passed in as the first parameter.

Get hands-on with 1200+ tech skills courses.