How to loop through object in JavaScript

Objects
Last updated Nov 11, 2017
const repository = {
  id: 1,
  language: "javascript",
  public: true
};

for (const value of Object.values(repository)) {
  console.log(value);
}
1
javascript
true