no message

Former-commit-id: e8974f6e7f2bd30aba21642072ec81e38a597e8e
Former-commit-id: 5c20e0d4058d2a4e9a17deec64597678e736ef32
Former-commit-id: b0dd76f4e1f5082dd24c24e0fbb2dad134bab31b
This commit is contained in:
李杨
2018-02-09 14:17:03 +08:00
parent 5c8ae83211
commit 865b6d1a06
5 changed files with 5 additions and 5 deletions

View File

@@ -1,23 +0,0 @@
const clone = (obj) => {
var o
if (typeof obj === 'object') {
if (obj === null) {
o = null
} else {
if (obj instanceof Array) {
o = []
for (var i = 0, len = obj.length; i < len; i++) {
o.push(clone(obj[i]))
}
} else {
o = {}
for (var j in obj) {
o[j] = clone(obj[j])
}
}
}
} else { o = obj }
return o
}
export default clone

View File

@@ -1 +0,0 @@
637e1ab54544a3296a996a352314ab659e5b43a2