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

Function getVal

src/lib/console.js:325–337  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

323 });
324
325 function getVal(val) {
326 const type = typeof val;
327 const $val = getElement(type);
328 if (type === "object" && val !== null) {
329 $val.append(...getBody(obj, ...keys, key));
330 } else {
331 if (type === "function") {
332 val = parseFunction(val);
333 }
334 $val.textContent = val + "";
335 }
336 return $val;
337 }
338 }
339
340 function objValue(obj, ...keys) {

Callers 2

onclickFunction · 0.85
appendPropertiesFunction · 0.85

Calls 4

getElementFunction · 0.85
getBodyFunction · 0.85
parseFunctionFunction · 0.85
appendMethod · 0.80

Tested by

no test coverage detected