The problem with these approaches is it will only work for objects with primitive properties.if443Pankaj DekateFarzad YZFollowSep 7, 2018 · 1 min readTrue that! It also only works for shallow copying and non-circular dependant objects.