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

Function sourceNumber

packages/nativescript-inspector/src/index.ts:2366–2372  ·  view source on GitHub ↗
(
  location: JSONObject | null | undefined,
  key: string,
)

Source from the content-addressed store, hash-verified

2364}
2365
2366function sourceNumber(
2367 location: JSONObject | null | undefined,
2368 key: string,
2369): number | null {
2370 const value = location?.[key];
2371 return typeof value === "number" && Number.isFinite(value) ? value : null;
2372}
2373
2374function tap(target: any): void {
2375 if (isKindOf(target, "UISwitch")) {

Callers 5

nativeScriptNodeMethod · 0.85
nativeScriptInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected