deepCopy: function (data) {
if (data === null || data === undefined) {
return null;
}
let result = Array.isArray(data) ? [] : {};
if (data && typeof data === 'object') {
for (let key in data) {
if (data[key] && typeof data[key] === 'object') {
result[key] = this.deepCopy(data[key]);
} else {
result[key] = data[key];
}
}
}
return result;
},