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

Function constructorName

packages/nativescript-inspector/src/index.ts:1962–1964  ·  view source on GitHub ↗
(object: any)

Source from the content-addressed store, hash-verified

1960}
1961
1962function constructorName(object: any): string {
1963 return object?.constructor?.name ?? "Object";
1964}
1965
1966function moduleName(name: string): string | null {
1967 return name.includes(".") ? name.split(".")[0] : null;

Callers 5

nativeScriptNodeMethod · 0.85
classNameFunction · 0.85
stringValueFunction · 0.85
nativeScriptViewTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected