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

Function reactiveReadArray

web/main.js:844–849  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

842 endBatch();
843}
844function reactiveReadArray(array) {
845 const raw = /* @__PURE__ */ toRaw(array);
846 if (raw === array) return raw;
847 track(raw, "iterate", ARRAY_ITERATE_KEY);
848 return /* @__PURE__ */ isShallow(array) ? raw : raw.map(toReactive);
849}
850function shallowReadArray(arr) {
851 track(arr = /* @__PURE__ */ toRaw(arr), "iterate", ARRAY_ITERATE_KEY);
852 return arr;

Callers 5

concatFunction · 0.85
joinFunction · 0.85
toReversedFunction · 0.85
toSortedFunction · 0.85
toSplicedFunction · 0.85

Calls 3

toRawFunction · 0.85
trackFunction · 0.85
isShallowFunction · 0.85

Tested by

no test coverage detected