decord/source/__polyfill/13xxx/module_13064.js
github-actions 8d58bae3b2 chore: update source for alpha 347.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
2026-09-18 06:58:00 +00:00

48 lines
1.1 KiB
JavaScript

// Module ID: 13064
// Function ID: 13065
// Dependencies: []
// Module 13064
function merge(arg0, obj) {
let num = arg2;
if (arg2 === undefined) {
num = 2;
}
if (obj) {
if (typeof obj === "object") {
if (num > 0) {
if (arg0) {
if (obj) {
const _Object = Object;
if (0 === Object.keys(obj).length) {
return arg0;
}
}
}
obj = {};
const merged = Object.assign(arg0);
for (const key10016 in arg1) {
let _Object2 = Object;
hasOwnProperty = Object.prototype.hasOwnProperty;
let call = hasOwnProperty.call;
if (typeof call === "unknown") {
let hasOwnPropertyResult = hasOwnProperty(key10016);
} else {
hasOwnPropertyResult = call(arg1, key10016);
}
if (!hasOwnPropertyResult) {
continue;
} else {
obj[key10016] = merge(obj[key10016], arg1[key10016], num - 1);
continue;
}
continue;
}
return obj;
}
}
}
return obj;
}
export { merge };