How to loop over objects with vanilla JavaScript

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Really digging the concise and quick tips!

One suggestion though; if/when ya know both the key and value will be useful, then `Object.entries` may be more readable/maintainable, eg.

```javascript
for (const [key, value] of Object.entries(lunch)) {
console.log(key, '->', value);
}
```

SAndS
join shbcf.ru