MCPcopy Create free account
hub / github.com/ClydeTime/Surge / toStr

Method toStr

Script/Env.js:61–67  ·  view source on GitHub ↗
(obj, defaultValue = null)

Source from the content-addressed store, hash-verified

59 }
60
61 toStr(obj, defaultValue = null) {
62 try {
63 return JSON.stringify(obj)
64 } catch {
65 return defaultValue
66 }
67 }
68
69 lodash_get(object = {}, path = "", defaultValue = undefined) {
70 // translate array case to dot case, then split with .

Callers

nothing calls this directly

Calls 1

stringifyMethod · 0.45

Tested by

no test coverage detected