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

Function readNumber

src/main/store/sanitize.ts:33–39  ·  view source on GitHub ↗
(
  source: Record<string, unknown>,
  key: string,
  fallback: number,
)

Source from the content-addressed store, hash-verified

31}
32
33export function readNumber(
34 source: Record<string, unknown>,
35 key: string,
36 fallback: number,
37): number {
38 return typeof source[key] === 'number' ? Number(source[key]) : fallback
39}
40
41export function readOptionalNumber(
42 source: Record<string, unknown>,

Callers 7

sanitizeMarkdownSettingsFunction · 0.90
sanitizeMathSettingsFunction · 0.90
sanitizePreferencesFunction · 0.90
sanitizeDonationsFunction · 0.90
sanitizeAppStoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected