do you have to turn an object into an array to iterate it in javascript code example
Example: converting object to array in js
const numbers = {
one: 1,
};
const objectArray = Object.entries(numbers);
objectArray.forEach(([key, value]) => {
console.log(key); // 'one'
console.log(value); // 1
});