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

Function debugClassName

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

Source from the content-addressed store, hash-verified

1954}
1955
1956function debugClassName(object: any): string {
1957 const description = stringValue(object);
1958 const match = /^<([^:>]+)[:>]/.exec(description);
1959 return match?.[1] ?? "";
1960}
1961
1962function constructorName(object: any): string {
1963 return object?.constructor?.name ?? "Object";

Callers 1

classNameFunction · 0.85

Calls 2

stringValueFunction · 0.85
execMethod · 0.80

Tested by

no test coverage detected