Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gitgud
· 7y ago · 0 comments
This doesn't seem to copy methods on an object. Why is this better than using JSON.stringify(OBJ) and JSON.parse(OBJ) to deep clone?
Comments
[–]
jfet97
7y ago
Lot of stuff, as you can see in the docs. JSON.parse/stringify does not call the constructors for example