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

Function readOptionalNumber

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

Source from the content-addressed store, hash-verified

39}
40
41export function readOptionalNumber(
42 source: Record<string, unknown>,
43 key: string,
44): number | undefined {
45 return typeof source[key] === 'number' ? Number(source[key]) : undefined
46}
47
48export function readBoolean(
49 source: Record<string, unknown>,

Callers 1

sanitizeAppStoreFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected