JavaScript Jabber cover image

Even More JavaScript Features You Should Avoid - JSJ 547

JavaScript Jabber

00:00

Javascript Objects

Javasgot has an in operator, but it traverses up the prototype chain. If you're using an object as a dictionary, you probably should be using a map instead. In is kind of like that black sheep of the family and their better ways to iterate over collections. For in basin, iiterates over the keys. What you're really interested in most cases are the values. And so what i generally want is something as is for of. Afore each is actually not such a great example of an iteration method because it's alsoa works teaside effects,. But there 'snicenes if you're doing another stuff, you can get into all sorts of

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app