projexsys/Jolt — comment on commit 195780f9bb1287ab1446c436c7a4d1e738580cea
File: index.js line 1841
By jdalton:

From looking at `deepCopy` it doesn't really avoid call stack overflows and attempts to copy objects that are instances of custom constructors though it doesn't really make a clone but a poor static copy of the instance object properties. It also doesn't handle ES5 attribute descriptors. On the plus side it does attempt to clone DOM nodes which is something I don't do.

To make `deepClone()` better fit your needs you can drop the `hasKey` function and use `hasOwnProperty` instead. You can also drop `getSource` and most likely remove a bit more.