MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #serialize

Method #serialize

www/js/_hyperscript.js:3812–3822  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

3810 return elt?._hyperscript?.elementScope || {};
3811 }
3812 static #serialize(value) {
3813 if (value == null) return "";
3814 if (typeof value === "object") {
3815 try {
3816 return JSON.stringify(value);
3817 } catch (_) {
3818 return "";
3819 }
3820 }
3821 return String(value);
3822 }
3823 static #resolveInherited(scopeKey, startElt) {
3824 var elt = startElt;
3825 while (elt) {

Callers 1

#resolveSpecifiersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected