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

Function toDisplayString

web/main.js:212–214  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

210 return !!(val && val["__v_isRef"] === true);
211};
212const toDisplayString = (val) => {
213 return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef$1(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
214};
215const replacer = (_key, val) => {
216 if (isRef$1(val)) {
217 return replacer(_key, val.value);

Callers 1

setupFunction · 0.85

Calls 4

isStringFunction · 0.85
isObjectFunction · 0.85
isFunctionFunction · 0.85
isRef$1Function · 0.85

Tested by

no test coverage detected