Travis build: 2065

This commit is contained in:
30secondsofcode
2018-05-15 18:53:35 +00:00
parent fbd68ec863
commit c51ec370c3
2 changed files with 2 additions and 2 deletions

View File

@@ -6123,7 +6123,7 @@ const deepClone = obj => {
Object.keys(clone).forEach(
key => (clone[key] = typeof obj[key] === 'object' ? deepClone(obj[key]) : obj[key])
);
return Array.isArray(obj) ? Array.from(clone) : clone;
return Array.isArray(obj) ? (clone.length = obj.length) && Array.from(clone) : clone;
};
```