I don't know whether this is an actual problem, only stumbled over the question while reviewing the code:
|
primary = cloner.deep.merge(secondary, primary); |
Shouldn't this be merging the requested key only?
primary[keyName] = cloner.deep.merge(secondary[keyName], primary[keyName]);
… so that only the specified key is merged, regardless of what type it is?
Feel free to close if invalid.
I don't know whether this is an actual problem, only stumbled over the question while reviewing the code:
merge/src/merge.js
Line 31 in dd46140
Shouldn't this be merging the requested key only?
… so that only the specified key is merged, regardless of what type it is?
Feel free to close if invalid.