Vishal Raj
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.

--

--

Vishal Raj
Vishal Raj

Written by Vishal Raj

Software developer by Heart…

No responses yet