How to loop through object in JavaScript

Objects
By Jad Joubran · 
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
Object.values on MDN