decord/source/modules/reanimated/native/cheapWorkletShallowEqual.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

63 lines
2.1 KiB
TypeScript

// Module ID: 9500
// Function ID: 9501
// Name: cheapWorkletShallowEqual
// Dependencies: [2]
// Exports: cheapWorkletArrayShallowEqual, cheapWorkletShallowEqual
// Module 9500 (cheapWorkletShallowEqual)
import set from "set" /* 2 */;
function cheapWorkletShallowEqual(safeAreaState, current) {
if (safeAreaState === current) {
return true;
} else {
if (null != safeAreaState) {
if (null != current) {
for (const key10005 in arg0) {
let tmp3 = key10005;
if (arg0[key10005] === arg1[key10005]) {
continue;
} else {
let flag = false;
return false;
}
}
return true;
}
}
return false;
}
}
cheapWorkletShallowEqual.__closure = {};
cheapWorkletShallowEqual.__workletHash = 760221372005;
cheapWorkletShallowEqual.__initData = { code: "function cheapWorkletShallowEqual_cheapWorkletShallowEqualTsx1(a,b){if(a===b)return true;if(a==null||b==null)return false;for(const key in a){if(a[key]!==b[key])return false;}return true;}" };
function cheapWorkletArrayShallowEqual(activeIndex, arg1) {
if (activeIndex === arg1) {
return true;
} else {
if (null != activeIndex) {
if (null != arg1) {
if (activeIndex.length !== arg1.length) {
return false;
} else {
let num = 0;
if (0 < activeIndex.length) {
while (activeIndex[num] === arg1[num]) {
num = num + 1;
}
return false;
}
return true;
}
}
}
return false;
}
}
cheapWorkletArrayShallowEqual.__closure = {};
cheapWorkletArrayShallowEqual.__workletHash = 3679738010781;
cheapWorkletArrayShallowEqual.__initData = { code: "function cheapWorkletArrayShallowEqual_cheapWorkletShallowEqualTsx2(a,b){if(a===b)return true;if(a==null||b==null)return false;if(a.length!==b.length)return false;for(let i=0;i<a.length;i++){if(a[i]!==b[i])return false;}return true;}" };
const result = set.fileFinishedImporting("modules/reanimated/native/cheapWorkletShallowEqual.tsx");
export { cheapWorkletShallowEqual };
export { cheapWorkletArrayShallowEqual };