Yeah, my first thought was `Object.keys` and `getOwnPropertyNames` will returns both enumerable and non enumerable. `Object.keys` returns all enumerable own properties.