in src/XDM.ts [131:144]
function getAllPropertyNames(obj: any) {
const properties: { [key: string]: true } = {};
while (obj && obj !== Object.prototype) {
const ownPropertyNames = Object.getOwnPropertyNames(obj);
for (const name of ownPropertyNames) {
if (name !== "constructor") {
properties[name] = true;
}
}
obj = Object.getPrototypeOf(obj);
}
return properties;
}