[improvement] update eslint config (#2288)
This commit is contained in:
@@ -3,7 +3,8 @@ import deepAssign from './deep-assign';
|
||||
export default function deepClone(obj) {
|
||||
if (Array.isArray(obj)) {
|
||||
return obj.map(item => deepClone(item));
|
||||
} else if (typeof obj === 'object') {
|
||||
}
|
||||
if (typeof obj === 'object') {
|
||||
return deepAssign({}, obj);
|
||||
}
|
||||
return obj;
|
||||
|
||||
Reference in New Issue
Block a user