MCPcopy Create free account
hub / github.com/Nynxz/ComfyUI-IdeogramHelper / createPathGetter

Function createPathGetter

web/main.js:2313–2322  ·  view source on GitHub ↗
(ctx, path)

Source from the content-addressed store, hash-verified

2311 return res;
2312}
2313function createPathGetter(ctx, path) {
2314 const segments = path.split(".");
2315 return () => {
2316 let cur = ctx;
2317 for (let i = 0; i < segments.length && cur; i++) {
2318 cur = cur[segments[i]];
2319 }
2320 return cur;
2321 };
2322}
2323const pendingMounts = /* @__PURE__ */ new WeakMap();
2324const TeleportEndKey = /* @__PURE__ */ Symbol("_vte");
2325const isTeleport = (type) => type.__isTeleport;

Callers 2

instanceWatchFunction · 0.85
createWatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected