MCPcopy Index your code
hub / github.com/massCodeIO/massCode / get

Method get

src/main/store/__tests__/preferences.test.ts:75–81  ·  view source on GitHub ↗
(key?: string)

Source from the content-addressed store, hash-verified

73 }
74
75 get(key?: string): unknown {
76 if (!key) {
77 return this.state
78 }
79
80 return getByPath(this.state, key)
81 }
82
83 set(key: string | State, value?: unknown): void {
84 if (typeof key === 'string') {

Callers 15

preload.tsFile · 0.45
createWindowFunction · 0.45
index.tsFile · 0.45
getCurrencyRatesFunction · 0.45
refreshFiatRatesForcedFunction · 0.45
refreshCryptoRatesForcedFunction · 0.45
validateStoredLicenseFunction · 0.45
notifyAboutUpdateFunction · 0.45
checkForUpdatesFromMenuFunction · 0.45
checkForUpdatesFunction · 0.45
persistHttpImportResultFunction · 0.45
getFolderIdFunction · 0.45

Calls 1

getByPathFunction · 0.85

Tested by

no test coverage detected