const obj = { id: 1, name: 'Dan', state: 'CA' }; Object.entries(obj).forEach(([key, value])=> console.log(`${key}: ${value}`)); // "id: 1", "name: Dan", "state: CA"