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

Method getval

jd_joy_new.js:1137–1139  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

1135 }
1136
1137 getval(t) {
1138 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
1139 }
1140
1141 setval(t, e) {
1142 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

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