Travis build: 2050

This commit is contained in:
30secondsofcode
2018-05-11 09:46:16 +00:00
parent 26b18954ad
commit e166bccd19
3 changed files with 2 additions and 8 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 clone;
return Array.isArray(obj) ? Array.from(clone) : clone;
};
```