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 16b0f84 commit d9208ccCopy full SHA for d9208cc
packages/devextreme/js/__internal/core/utils/m_object.ts
@@ -41,7 +41,13 @@ const orderEach = function (map, func) {
41
42
const getDeepCopyTarget = (item) => {
43
if (isObject(item)) {
44
- return Array.isArray(item) ? [] : {};
+ if (Array.isArray(item)) {
45
+ return [];
46
+ }
47
+ if (!isPlainObject(item)) {
48
+ return Object.create(Object.getPrototypeOf(item));
49
50
+ return {};
51
}
52
return item;
53
};
0 commit comments