functionclone(obj){if(typeof obj==="Object"&&typeof obj!=="null"){var type =Object.protype.toString.call(obj).slice(8,-1)==="Array"?[]:{}for(let i in obj){if(typeof obj==="Object"&&typeof obj!=="null"){
type[i]=clone(obj[i])}else{
type[i]=obj[i]}}}else{return obj
}return type
}clone(obj)
function clone(obj){ if(typeof obj==="Object"&&typeof obj!=="null"){ var type =Object.protype.toString.call(obj).slice(8,-1)==="Array"?[]:{} for(let i in obj){ if(typeof obj==="Object"&&typeof obj!=="null"){ type[i]=clone(obj[