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

Method beepValueToConsole

www/js/_hyperscript.js:2946–2952  ·  view source on GitHub ↗
(element, expression, value)

Source from the content-addressed store, hash-verified

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