Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid copying non-enumerable and/or symbol keys in cloneDeep. (#4052)
#4039 (comment) The previous fclone implementation also did not preserve non-enumerable or non-string keys, so this is not a breaking change. The Date case was also a bit overzealous, since there are no actual use cases in this codebase that require Date objects to be duplicated, rather than simply passing them through. If we're missing any cases that anyone cares about, we can easily expand the switch-case coverage in the future.
- Loading branch information