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

Function nativeScriptAvailable

packages/nativescript-inspector/src/index.ts:1982–1986  ·  view source on GitHub ↗
(info: JSONObject)

Source from the content-addressed store, hash-verified

1980}
1981
1982function nativeScriptAvailable(info: JSONObject): boolean {
1983 const appHierarchy = objectValue(info.appHierarchy);
1984 const nativeScript = objectValue(info.nativeScript);
1985 return Boolean(appHierarchy.available || nativeScript.available);
1986}
1987
1988function objectValue(value: unknown): JSONObject {
1989 return value && typeof value === "object" ? (value as JSONObject) : {};

Callers 1

Calls 1

objectValueFunction · 0.85

Tested by

no test coverage detected