66 lines
1.5 KiB
TypeScript
66 lines
1.5 KiB
TypeScript
// Module ID: 1917
|
|
// Function ID: 21609
|
|
// Name: areArraysShallowlyEqual
|
|
// Dependencies: [2]
|
|
// Exports: cachedFunction, clearObject, isPlainObjectEmpty
|
|
|
|
// Module 1917 (areArraysShallowlyEqual)
|
|
function areArraysShallowlyEqual(arg0, arg1) {
|
|
if (arg0 === arg1) {
|
|
return true;
|
|
} else {
|
|
if (null != arg0) {
|
|
if (null != arg1) {
|
|
if (arg0.length === arg1.length) {
|
|
let num = 0;
|
|
if (0 < arg0.length) {
|
|
while (arg0[num] === arg1[num]) {
|
|
num = num + 1;
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
const result = require("set").fileFinishedImporting("utils/FunctionUtils.tsx");
|
|
|
|
export { areArraysShallowlyEqual };
|
|
export function cachedFunction(arg0) {
|
|
let closure_0 = arg0;
|
|
let c1 = null;
|
|
let c2 = null;
|
|
return (arg0) => {
|
|
const items = [...arguments];
|
|
if (!callback(items, items)) {
|
|
const items1 = [];
|
|
HermesBuiltin.arraySpread(items, 0);
|
|
let closure_2 = HermesBuiltin.apply(items1, undefined);
|
|
}
|
|
return closure_2;
|
|
};
|
|
}
|
|
export const clearObject = function clearObject(obj) {
|
|
for (const key10003 in arg0) {
|
|
let tmp3 = key10003;
|
|
if (!arg0.hasOwnProperty(key10003)) {
|
|
continue;
|
|
} else {
|
|
delete tmp[tmp2];
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
};
|
|
export function isPlainObjectEmpty(arg0) {
|
|
const keys = Object.keys();
|
|
if (keys !== undefined) {
|
|
if (keys[tmp] !== undefined) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|