deep-clone.c5af4e6b.js 208 B

1
  1. const t=r=>{if(r===null)return null;const e=Object.assign({},r);return Object.keys(e).forEach(n=>e[n]=typeof r[n]=="object"?t(r[n]):r[n]),Array.isArray(r)?(e.length=r.length,Array.from(e)):e};export{t as d};