decord/source/modules/reanimated/native/cheapWorkletShallowEqual.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

62 lines
2.1 KiB
TypeScript

// Module ID: 9625
// Function ID: 9626
// Name: cheapWorkletShallowEqual
// Dependencies: [2]
// Exports: cheapWorkletArrayShallowEqual, cheapWorkletShallowEqual
// Module 9625 (cheapWorkletShallowEqual)
import size from "module_2" /* 2 */;
function cheapWorkletShallowEqual(safeAreaState, current) {
if (safeAreaState === current) {
return true;
} else {
if (null != safeAreaState) {
if (null != current) {
for (const key10005 in arg0) {
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(arg0, arg1) {
if (arg0 === arg1) {
return true;
} else {
if (null != arg0) {
if (null != arg1) {
if (arg0.length !== arg1.length) {
return false;
} else {
let num = 0;
if (0 < arg0.length) {
while (arg0[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 = size.fileFinishedImporting("modules/reanimated/native/cheapWorkletShallowEqual.tsx");
export { cheapWorkletShallowEqual };
export { cheapWorkletArrayShallowEqual };