@tuoyuan/map-adapter-lib
Version:
地图适配器库
2 lines (1 loc) • 437 B
JavaScript
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(n,...s)=>{if(typeof n!="object"||n===null)throw new Error("Target must be an object.");for(const o of s)if(!(typeof o!="object"||o===null)){for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e))if(typeof o[e]=="object"&&o[e]!==null){const t=Array.isArray(o[e])?[]:{};n[e]=r(t,n[e],o[e])}else n[e]=o[e]??n[e]}return n};exports.deepAssign=r;