const o = { a: 1 }; Object.defineProperty(o, "b", { value: 2, enumerable: false }); console.log(Object.keys(o), Object.getOwnPropertyNames(o));