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

Method beepValueToConsole

src/core/runtime/runtime.js:997–1007  ·  view source on GitHub ↗
(element, expression, value)

Source from the content-addressed store, hash-verified

995 }
996
997 beepValueToConsole(element, expression, value) {
998 if (this.triggerEvent(element, "hyperscript:beep", {element, expression, value})) {
999 var typeName = !value ? "object (null)"
1000 : value instanceof ElementCollection ? "ElementCollection"
1001 : value.constructor?.name || "unknown";
1002 var logValue = typeName === "String" ? '"' + value + '"'
1003 : value instanceof ElementCollection ? Array.from(value)
1004 : value;
1005 console.log("///_ BEEP! The expression (" + expression.sourceFor().replace("beep! ", "") + ") evaluates to:", logValue, "of type " + typeName);
1006 }
1007 }
1008
1009}

Callers 2

resolveMethod · 0.45
resolveMethod · 0.45

Calls 2

triggerEventMethod · 0.95
sourceForMethod · 0.45

Tested by

no test coverage detected