MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / numberValue

Function numberValue

packages/nativescript-inspector/src/index.ts:2003–2005  ·  view source on GitHub ↗
(value: unknown, fallback = 0)

Source from the content-addressed store, hash-verified

2001}
2002
2003function numberValue(value: unknown, fallback = 0): number {
2004 return typeof value === "number" && Number.isFinite(value) ? value : fallback;
2005}
2006
2007function finiteNumber(value: unknown): number | null {
2008 return typeof value === "number" && Number.isFinite(value) ? value : null;

Callers 13

infoMethod · 0.85
uikitNodeMethod · 0.85
snapshotMetadataMethod · 0.85
isVisibleFunction · 0.85
accessibilityInfoFunction · 0.85
textValueFunction · 0.85
controlInfoFunction · 0.85
setControlValueFunction · 0.85
scrollFunction · 0.85
decodeValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected