51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
// Metro module 9447 (f9448).
|
|
export function cheapWorkletShallowEqual(a0, a1) {
|
|
if (a0 === a1) {
|
|
return true;
|
|
}
|
|
if (a0 != null && a1 != null) {
|
|
for (const key in a0) {
|
|
if (a0[key] !== a1[key]) {
|
|
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;}"
|
|
};
|
|
export function cheapWorkletArrayShallowEqual(a0, a1) {
|
|
if (a0 === a1) {
|
|
return true;
|
|
}
|
|
if (a0 != null && a1 != null) {
|
|
if (a0.length !== a1.length) {
|
|
return false;
|
|
}
|
|
const length = a0.length;
|
|
let r0 = 0;
|
|
if (0 < length) {
|
|
do {
|
|
const r10 = a0[r0];
|
|
const r11 = a1[r0];
|
|
const r1 = r0;
|
|
if (r10 !== r11) {
|
|
return false;
|
|
}
|
|
r0 = r1 + 1;
|
|
} while (r0 < a0.length);
|
|
}
|
|
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;}"
|
|
};
|