Open
Description
applyDiff
not working if the target is undefined/null/false
but diff
works well with the same target. So, I think applyDiff
should works with target
same as diff
do (applyDiff
should change the target or diff
, should return null
as difference).
const lhs = false;
const rhs = {
value: 'test',
};
const diff = DeepDiff.diff(lhs, rhs);
console.log('diff', diff);
DeepDiff.applyDiff(lhs, rhs);
console.log('After apply', lhs);
Metadata
Metadata
Assignees
Labels
No labels