You are viewing a single comment's thread from:

RE: JavaScript - hasOwnProperty in `for-in` loops

in #programming7 years ago (edited)

Good post. I used to run into bugs when I forgot to use the object's hasOwnProperty. Using Eslint in your preferred code editor is actually a good idea for catching this kind of bugs. I use atom for my work and have an atom eslint plugin that checks for errors.

Also checkout my new post on Promise Chaining

https://steemit.com/javascript/@codero/javascript-promise-chaining