mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
1 line
3.2 KiB
JSON
1 line
3.2 KiB
JSON
|
{"ast":null,"code":"import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n\n return object;\n}\n\nexport default copyObject;","map":{"version":3,"sources":["/app/node_modules/lodash-es/_copyObject.js"],"names":["assignValue","baseAssignValue","copyObject","source","props","object","customizer","isNew","index","length","key","newValue","undefined"],"mappings":"AAAA,OAAOA,WAAP,MAAwB,mBAAxB;AACA,OAAOC,eAAP,MAA4B,uBAA5B;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,SAASC,UAAT,CAAoBC,MAApB,EAA4BC,KAA5B,EAAmCC,MAAnC,EAA2CC,UAA3C,EAAuD;AACrD,MAAIC,KAAK,GAAG,CAACF,MAAb;AACAA,EAAAA,MAAM,KAAKA,MAAM,GAAG,EAAd,CAAN;AAEA,MAAIG,KAAK,GAAG,CAAC,CAAb;AAAA,MACIC,MAAM,GAAGL,KAAK,CAACK,MADnB;;AAGA,SAAO,EAAED,KAAF,GAAUC,MAAjB,EAAyB;AACvB,QAAIC,GAAG,GAAGN,KAAK,CAACI,KAAD,CAAf;AAEA,QAAIG,QAAQ,GAAGL,UAAU,GACrBA,UAAU,CAACD,MAAM,CAACK,GAAD,CAAP,EAAcP,MAAM,CAACO,GAAD,CAApB,EAA2BA,GAA3B,EAAgCL,MAAhC,EAAwCF,MAAxC,CADW,GAErBS,SAFJ;;AAIA,QAAID,QAAQ,KAAKC,SAAjB,EAA4B;AAC1BD,MAAAA,QAAQ,GAAGR,MAAM,CAACO,GAAD,CAAjB;AACD;;AACD,QAAIH,KAAJ,EAAW;AACTN,MAAAA,eAAe,CAACI,MAAD,EAASK,GAAT,EAAcC,QAAd,CAAf;AACD,KAFD,MAEO;AACLX,MAAAA,WAAW,CAACK,MAAD,EAASK,GAAT,EAAcC,QAAd,CAAX;AACD;AACF;;AACD,SAAON,MAAP;AACD;;AAED,eAAeH,UAAf","sourcesContent":["import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nexport default copyObject;\n"]},"metadata":{},"sourceType":"module"}
|