MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / beepValueToConsole

Method beepValueToConsole

tools/common/_hyperscript.iife.js:2895–2901  ·  view source on GitHub ↗
(element, expression, value)

Source from the content-addressed store, hash-verified

2893 }
2894 }
2895 beepValueToConsole(element, expression, value) {
2896 if (this.triggerEvent(element, "hyperscript:beep", { element, expression, value })) {
2897 var typeName = !value ? "object (null)" : value instanceof ElementCollection ? "ElementCollection" : value.constructor?.name || "unknown";
2898 var logValue = typeName === "String" ? '"' + value + '"' : value instanceof ElementCollection ? Array.from(value) : value;
2899 console.log("///_ BEEP! The expression (" + expression.sourceFor().replace("beep! ", "") + ") evaluates to:", logValue, "of type " + typeName);
2900 }
2901 }
2902 };
2903
2904 // src/core/runtime/reactivity.js

Callers 2

resolveMethod · 0.45
resolveMethod · 0.45

Calls 2

triggerEventMethod · 0.95
sourceForMethod · 0.45

Tested by

no test coverage detected