effectivePhantomReconciliationRule.js
533 Bytes
/**
* tab0「全部品类」占位:getEffectRule 末尾会清空 live phantom,比对/解析需回落到基线中的快照。
* @param {object|null|undefined} livePhantom
* @param {object|null|undefined} baselinePhantom
* @returns {object|null}
*/
export function getEffectivePhantomFullCategoryRuleRaw(
livePhantom,
baselinePhantom
) {
if (livePhantom && typeof livePhantom === "object") return livePhantom
if (baselinePhantom && typeof baselinePhantom === "object") {
return baselinePhantom
}
return null
}