// an easy way is to const obj = {1: 'a', 2: 'b', 3: 'c',}; for (const i in obj) console.log(obj[i]); //it is a simple way to loop on values of an object