We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf70e8 commit 2eb32fcCopy full SHA for 2eb32fc
1 file changed
src/Neo.mjs
@@ -353,10 +353,8 @@ Neo = globalThis.Neo = Object.assign({
353
return Neo.merge(Neo.clone(defaultValue, true), instanceValue);
354
} else if (typeof strategy === 'function') {
355
return strategy(defaultValue, instanceValue)
356
- } else if (strategy === 'replace') { // Explicitly handle 'replace'
357
- return instanceValue;
358
- } else { // Default to 'deep' if strategy is not recognized or undefined
359
- return Neo.merge(Neo.clone(defaultValue, true), instanceValue);
+ } else { // Default to 'replace' or if strategy is not recognized
+ return instanceValue
360
}
361
},
362
0 commit comments