DEV Community


Discussion on: Understanding Deep Copy and Shallow Copy in Javascript

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.

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