Use Object.keys Over Object.getOwnPropertyNames