We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32e194e commit 4550dd2Copy full SHA for 4550dd2
1 file changed
src/utils/set.ts
@@ -110,10 +110,10 @@ export function mergeWith<T extends object>(
110
clone = set(clone, path, createEmpty(value));
111
}
112
113
- const valueKeys = isArr
114
- ? keys(value).filter(key => key !== 'length')
115
- : keys(value);
116
- valueKeys.forEach(key => {
+ keys(value).forEach(key => {
+ if (isArr && key === 'length') {
+ return;
+ }
117
internalMerge([...path, key], loopSet);
118
});
119
0 commit comments