js-object-clone
js-object-clone copied to clipboard
Deep clone and comparison with ES5 property descriptor and object extensibility support
If `descriptors` is set to false, the clone function never checks the value of `deep` flag for objects/arrays.
``` javascript var foo = {}; foo.cyclic = foo; var bar = Object.clone(foo, true); //This is definitely wrong bar.cyclic === foo; bar.cyclic !== bar; ``` ``` javascript var foo =...
We need to add TypedArray support https://goo.gl/asENrB
https://github.com/Benvie/WeakMap provides a `WeakMap` implementation for most browsers that don't support it. Including this with `js-object-clone` means circular references can be handled by default. This is just a suggestion, I...