clone
clone copied to clipboard
'toString' field removed from cloned object
Cloning an object that includes field 'toString' will have the following affect: before clone:
[ { a: 'aaa', toString: 'bbb' }, { a: 'ccc', toString: 'ddd' } ]
after clone:
[ { a: 'aaa' }, { a: 'ccc' } ]
'toString' field is removed from cloned object.
Could use hasOwnProperty to tell if a field from Object is being overwritten on the clonee.
@rictic not sure I’m following you. Is it a workaround?
Bump on this, this issue is hanging me up on the development of my programming language.