
Even More JavaScript Features You Should Avoid - JSJ 547
JavaScript Jabber
00:00
Javascript Inoperator
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.
Transcript
Play full episode