ownKeysbeginnerconst obj = { a: 1, b: 2 }
const keys = Reflect.ownKeys(obj)
console.log(keys) // β ['a', 'b']
// Includes string keys, Symbol keys, and non-enumerable keysReflect.ownKeys() returns an array of all own property keys (strings and Symbols) of an object.
typeof Reflect.ownKeys returns function.