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

Function readNumber

src/main/windowBounds.ts:16–20  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

14}
15
16function readNumber(value: unknown) {
17 return typeof value === 'number' && Number.isFinite(value)
18 ? Math.round(value)
19 : undefined
20}
21
22function readDimension(value: unknown) {
23 const number = readNumber(value)

Callers 2

readDimensionFunction · 0.70
normalizeWindowBoundsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected