Open JoshuaCWebDeveloper opened 5 years ago
This behavior also causes problems when the object value is null
(#19).
This also happens for Date
objects.
We could add custom cloners for some common object types, and provide a way for the user to define custom cloning.
This behavior can cause problems when copying complex objects, such as a DOM element (but I think also for any non-plain object?). Consider only copying plain objects. Alternatively, better document the solution for having complex object values in JCObject, which is to define a separate getter for each of those properties.