Shallow Copy means creating new references to the primitive values inside the object, copying them. A shallow copy refers to the fact that only one level is copied, and that will work fine for an array or object containing only primitive values. For objects and arrays containing other objects or arrays, copying these objects

5m read timeFrom devdojo.com
Post cover image
Table of contents
What is Shallow Copy?What is Deep Copy?
1 Comment

Sort: