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

Method toObj

jd_api_test.js:161–167  ·  view source on GitHub ↗
(t, e = null)

Source from the content-addressed store, hash-verified

159 }
160
161 toObj(t, e = null) {
162 try {
163 return JSON.parse(t)
164 } catch {
165 return e
166 }
167 }
168
169 toStr(t, e = null) {
170 try {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected