Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
91 lines
2.1 KiB
TypeScript
91 lines
2.1 KiB
TypeScript
// Module ID: 1934
|
|
// Function ID: 1935
|
|
// Name: FunctionUtils
|
|
// Dependencies: [2]
|
|
// Exports: areArraysShallowlyEqual, cachedFunction, clearObject, isPlainObjectEmpty
|
|
|
|
// Module 1934 (FunctionUtils)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("utils/FunctionUtils.tsx");
|
|
|
|
export const 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;
|
|
}
|
|
};
|
|
export function cachedFunction(arg0) {
|
|
closure_0 = arg0;
|
|
let items = null;
|
|
closure_2 = null;
|
|
return () => {
|
|
items = [...arguments];
|
|
let flag = true;
|
|
if (items !== items) {
|
|
flag = false;
|
|
if (null != arr2) {
|
|
flag = false;
|
|
if (null != items) {
|
|
flag = false;
|
|
if (arr2.length === items.length) {
|
|
let num2 = 0;
|
|
flag = true;
|
|
if (0 < arr2.length) {
|
|
flag = false;
|
|
while (arr2[num2] === items[num2]) {
|
|
let sum = num2 + 1;
|
|
num2 = sum;
|
|
flag = true;
|
|
if (sum >= length) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!flag) {
|
|
const items1 = [];
|
|
HermesBuiltin.arraySpread(items, 0);
|
|
closure_2 = HermesBuiltin.apply(items1, undefined);
|
|
}
|
|
return closure_2;
|
|
};
|
|
}
|
|
export const clearObject = function clearObject(obj) {
|
|
for (const key10003 in arg0) {
|
|
if (!arg0.hasOwnProperty(key10003)) {
|
|
continue;
|
|
} else {
|
|
delete tmp[tmp2];
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
};
|
|
export const isPlainObjectEmpty = function isPlainObjectEmpty(arg0) {
|
|
const keys = Object.keys();
|
|
if (keys !== undefined) {
|
|
if (keys[tmp] !== undefined) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
};
|