1 min readOct 23, 2019
The Object.assign methods behaves similar to ES6 expansion shorthand. It creates shallow copy. Thus when the source has object / arrays at level 2 and beyond, modifying the source object would also reflect in the target object.