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

Function nsSet

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

Source from the content-addressed store, hash-verified

1800}
1801
1802function nsSet(value: any): any[] {
1803 if (!value) {
1804 return [];
1805 }
1806 if (typeof read(value, "allObjects") !== "undefined") {
1807 return nsArray(read(value, "allObjects"));
1808 }
1809 return nsArray(value);
1810}
1811
1812function read(target: any, property: string): any {
1813 if (!target) {

Callers 1

windowsMethod · 0.85

Calls 2

readFunction · 0.85
nsArrayFunction · 0.85

Tested by

no test coverage detected