DEV Community

loading...

Discussion on: Understanding Deep Copy and Shallow Copy in Javascript

Collapse
monaye profile image
Monaye Win

People confuse that spreader do a deeply nested copy. Need to be aware that both spreader and obj.assign doesn't do nested deep copy.

Collapse
edwardluu profile image
Edward Luu Author

Could you share the detail of this?

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app