MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getRefValue

Function getRefValue

src/handlers/quickTools.js:757–768  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

755}
756
757function getRefValue(ref) {
758 if (!ref) return "";
759 const direct = ref.value;
760 if (typeof direct === "string") return direct;
761 if (typeof direct === "number") return String(direct);
762 if (ref.el) {
763 const elValue = ref.el.value;
764 if (typeof elValue === "string") return elValue;
765 if (typeof elValue === "number") return String(elValue);
766 }
767 return "";
768}
769
770function setRefValue(ref, value) {
771 if (!ref) return;

Callers 3

actionsFunction · 0.85
toggleSearchFunction · 0.85
findFunction · 0.85

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected