MCPcopy Create free account
hub / github.com/Semporia/Scripts / toStr

Method toStr

jd_try.js:586–592  ·  view source on GitHub ↗
(obj, defaultValue = null)

Source from the content-addressed store, hash-verified

584 }
585
586 toStr(obj, defaultValue = null) {
587 try {
588 return JSON.stringify(obj)
589 } catch {
590 return defaultValue
591 }
592 }
593
594 getjson(key, defaultValue) {
595 let json = defaultValue

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected