index.js
const instance = {
name: "lilei",
age: 13,
};
Object.defineProperty(instance, "gender", {
value: 1,
enumerable: false,
});
Object.getOwnPropertyNames(instance); // [ 'name', 'age', 'gender' ]
Object.keys(instance); // [ 'name', 'age' ]