MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / get

Method get

modules/files/preference/lin/preference.js:17–24  ·  view source on GitHub ↗
(domain, key)

Source from the content-addressed store, hash-verified

15 }
16
17 static get(domain, key) {
18 let result = Preference.#cache[domain]?.[key];
19
20 if (result && ("object" === typeof result))
21 result = Uint8Array.from(result.buffer.split(",")).buffer;
22
23 return result;
24 }
25
26 static delete(domain, key) {
27 if (Preference.#cache[domain]?.[key] !== undefined) {

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected