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

Function read

packages/nativescript-inspector/src/index.ts:1812–1825  ·  view source on GitHub ↗
(target: any, property: string)

Source from the content-addressed store, hash-verified

1810}
1811
1812function read(target: any, property: string): any {
1813 if (!target) {
1814 return null;
1815 }
1816 const value = target[property];
1817 if (typeof value === "function") {
1818 try {
1819 return value.call(target);
1820 } catch {
1821 return value;
1822 }
1823 }
1824 return value;
1825}
1826
1827function call(target: any, method: string, ...args: unknown[]): unknown {
1828 if (!target || typeof target[method] !== "function") {

Callers 15

read_injected_bundlesFunction · 0.85
sample_stackFunction · 0.85
serve_static_innerFunction · 0.85
performMethod · 0.85
getPropertiesMethod · 0.85
setPropertyMethod · 0.85
nativeScriptNodeMethod · 0.85
uikitNodeMethod · 0.85
windowsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected