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

Function nsArray

packages/nativescript-inspector/src/index.ts:1787–1800  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

1785}
1786
1787function nsArray(value: any): any[] {
1788 if (!value) {
1789 return [];
1790 }
1791 if (Array.isArray(value)) {
1792 return value;
1793 }
1794 const count = Number(value.count ?? 0);
1795 const result: any[] = [];
1796 for (let index = 0; index < count; index += 1) {
1797 result.push(value.objectAtIndex(index));
1798 }
1799 return result;
1800}
1801
1802function nsSet(value: any): any[] {
1803 if (!value) {

Callers 6

uikitNodeMethod · 0.85
windowsMethod · 0.85
nativeScriptTabItemsFunction · 0.85
findSubviewFunction · 0.85
collectSubviewsFunction · 0.85
nsSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected