Closed mesqueeb closed 4 years ago
By default, no, only enumerable properties are copied. However, this edge case is one of the reasons copy.strict
was added, it should copy the key with the same object descriptor. It is not as fast, but it should produce the result you seek.
this didn't work for me: