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

Function call

packages/nativescript-inspector/src/index.ts:1827–1832  ·  view source on GitHub ↗
(target: any, method: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

1825}
1826
1827function call(target: any, method: string, ...args: unknown[]): unknown {
1828 if (!target || typeof target[method] !== "function") {
1829 return null;
1830 }
1831 return target[method](...args);
1832}
1833
1834function hasMethod(target: any, method: string): boolean {
1835 return Boolean(target && typeof target[method] === "function");

Callers 5

performMethod · 0.85
setPropertyMethod · 0.85
evaluateScriptMethod · 0.85
textValueFunction · 0.85
tapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected