MCPcopy
hub / github.com/sunnylqm/react-native-storage / getItem

Method getItem

storage.js:39–45  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

37 });
38 }
39 getItem(key) {
40 return this._s
41 ?
42 this.isPromise ? this._s.getItem(key) : Promise.resolve(this._s.getItem(key))
43 :
44 Promise.resolve();
45 }
46 setItem(key, value) {
47 return this._s
48 ?

Callers 3

constructorMethod · 0.95
_lookupGlobalItemMethod · 0.95
_lookUpInMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected