Write a function named deepCopy that receives an Object as a parameter and returns a new object that's a deep copy of it.
By deep copy, we mean that the 2 objects appear identical but they are not referencing the same properties.
NOTE: the Object received as a parameter can contain nested Objects, Arrays and Maps.
object
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro