uawdijnntqw1x1x1
IP : 216.73.216.153
Hostname : 6.87.74.97.host.secureserver.net
Kernel : Linux 6.87.74.97.host.secureserver.net 4.18.0-553.83.1.el8_10.x86_64 #1 SMP Mon Nov 10 04:22:44 EST 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
emeraadmin
/
www
/
uploads
/
..
/
node_modules
/
tss-react
/
tools
/
getDependencyArrayRef.js
/
/
"use strict"; /* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getDependencyArrayRef = void 0; /** * useEffect( * ()=> { ... }, * [ { "foo": "bar" } ] * ) * => The callback will be invoked every render. * because { "foo": "bar" } is a new instance every render. * * useEffect( * ()=> { ... }, * [ getDependencyArrayRef({ "foo": "bar" }) ] * ); * => The callback will only be invoked once. * * The optimization will be enabled only if obj is * of the form Record<string, string | number | undefined | null> * overwise the object is returned (the function is the identity function). */ function getDependencyArrayRef(obj) { if (!(obj instanceof Object) || typeof obj === "function") { return obj; } const arr = []; for (const key in obj) { const value = obj[key]; const typeofValue = typeof value; if (!(typeofValue === "string" || (typeofValue === "number" && !isNaN(value)) || typeofValue === "boolean" || value === undefined || value === null)) { return obj; } arr.push(`${key}:${typeofValue}_${value}`); } return "xSqLiJdLMd9s" + arr.join("|"); } exports.getDependencyArrayRef = getDependencyArrayRef;
/home/emeraadmin/www/uploads/../node_modules/tss-react/tools/getDependencyArrayRef.js