superstruct
superstruct copied to clipboard
Defaulted should clone default value if it's an object
When using defaulted
with a record
, it should copy the default value if its an object. This will fix pass-by-reference bugs with this function.
Closes #1238