mapValuesDeep mutates the original object if leavesOnly: false
#100
Replies: 2 comments
-
Hi, thank you for report, looks like a bug, will check in next few days. |
Beta Was this translation helpful? Give feedback.
-
If After that deepdash goes deeper and asks about leaf string value, but this leaf already belongs both to source and result objects, because they were mixed on previous iteration. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Great library 👍
I found using
mapValuesDeep
that if the options are left at the defaultleavesOnly: false
, then it mutates the original object. IfleavesOnly: true
then the original object is not mutated.You can see an example repl.it here.
Is this the expected behaviour?
Beta Was this translation helpful? Give feedback.
All reactions