let numbers = { one: 1, two: 2, three: 3 } for (let numberName of Object.keys(numbers)) { //no need for Object.hasOwnProperty console.log(numberName); }