MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / beepValueToConsole

Method beepValueToConsole

www/js/_hyperscript.esm.js:2944–2950  ·  view source on GitHub ↗
(element, expression, value)

Source from the content-addressed store, hash-verified

2942 }
2943 }
2944 beepValueToConsole(element, expression, value) {
2945 if (this.triggerEvent(element, "hyperscript:beep", { element, expression, value })) {
2946 var typeName = !value ? "object (null)" : value instanceof ElementCollection ? "ElementCollection" : value.constructor?.name || "unknown";
2947 var logValue = typeName === "String" ? '"' + value + '"' : value instanceof ElementCollection ? Array.from(value) : value;
2948 console.log("///_ BEEP! The expression (" + expression.sourceFor().replace("beep! ", "") + ") evaluates to:", logValue, "of type " + typeName);
2949 }
2950 }
2951};
2952
2953// 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