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

Method getval

jd_goodMorning.js:310–312  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

308 return s
309 }
310 getval(t) {
311 return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null
312 }
313 setval(t, e) {
314 return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null
315 }

Callers 2

getdataMethod · 0.45
setdataMethod · 0.45

Calls 6

readMethod · 0.80
isSurgeMethod · 0.45
isLoonMethod · 0.45
isQuanXMethod · 0.45
isNodeMethod · 0.45
loaddataMethod · 0.45

Tested by

no test coverage detected