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

Method getval

jd_try.js:745–756  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

743 }
744
745 getval(key) {
746 if (this.isSurge() || this.isLoon()) {
747 return $persistentStore.read(key)
748 } else if (this.isQuanX()) {
749 return $prefs.valueForKey(key)
750 } else if (this.isNode()) {
751 this.data = this.loaddata()
752 return this.data[key]
753 } else {
754 return (this.data && this.data[key]) || null
755 }
756 }
757
758 setval(val, key) {
759 if (this.isSurge() || this.isLoon()) {

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