Skip to content

Commit

Permalink
rm redundant if clause
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanblinov2k17 committed Jul 22, 2024
1 parent 8960dc3 commit daf331e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/devextreme/js/core/utils/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ const assignValueToProperty = function(target, property, value, extendComplexObj
} else if(!assignByReference && Array.isArray(value)) {
target[property] = value.map(item => {
let itemTarget = item;
if(!assignByReference) {
if(Array.isArray(item)) {
itemTarget = [];
}
if(isObject(item)) {
itemTarget = {};
}

if(Array.isArray(item)) {
itemTarget = [];
}
if(isObject(item)) {
itemTarget = {};
}

return deepExtendArraySafe(itemTarget, item, extendComplexObject, assignByReference, shouldCopyUndefined);
});
} else {
Expand Down

0 comments on commit daf331e

Please sign in to comment.