Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Semporia/Scripts
/ toObj
Method
toObj
jd_redPacket.js:1614–1620 ·
view source on GitHub ↗
(t, e = null)
Source
from the content-addressed store, hash-verified
1612
}
1613
1614
toObj(t, e = null) {
1615
try {
1616
return
JSON.parse(t)
1617
} catch {
1618
return
e
1619
}
1620
}
1621
1622
toStr(t, e = null) {
1623
try {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected