MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getAllProperties

Function getAllProperties

apps/automated/src/test-runner.ts:448–455  ·  view source on GitHub ↗
(obj: any)

Source from the content-addressed store, hash-verified

446}
447
448function getAllProperties(obj: any) {
449 let properties = new Set<string>();
450 let currentObj = obj;
451 do {
452 Object.getOwnPropertyNames(currentObj).map((item) => properties.add(item));
453 } while ((currentObj = Object.getPrototypeOf(currentObj)) && currentObj !== Object.prototype);
454 return [...properties.keys()];
455}
456
457let testsSelector: string;
458export function runAll(testSelector?: string) {

Callers 1

runAllFunction · 0.85

Calls 3

mapMethod · 0.65
addMethod · 0.65
keysMethod · 0.65

Tested by

no test coverage detected