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

Function isKindOf

packages/nativescript-inspector/src/index.ts:2218–2226  ·  view source on GitHub ↗
(object: any, classNameValue: string)

Source from the content-addressed store, hash-verified

2216}
2217
2218function isKindOf(object: any, classNameValue: string): boolean {
2219 const klass = safeCall(() => NSClassFromString(classNameValue), null);
2220 return Boolean(
2221 klass &&
2222 object &&
2223 typeof object.isKindOfClass === "function" &&
2224 object.isKindOfClass(klass),
2225 );
2226}
2227
2228function nativeScriptViewType(view: View): string {
2229 return stringValue((view as any).typeName) || constructorName(view);

Callers 15

nativeScriptNodeMethod · 0.85
findUIKitTabBarMethod · 0.85
tabBarControlsFunction · 0.85
tabBarControlLabelFunction · 0.85
colorValueFunction · 0.85
textValueFunction · 0.85
scrollInfoFunction · 0.85
controlInfoFunction · 0.85
actionsForFunction · 0.85
editablePropertiesForFunction · 0.85
tapFunction · 0.85

Calls 1

safeCallFunction · 0.85

Tested by

no test coverage detected