You are viewing a single comment's thread from:

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

in #programming8 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

Coin Marketplace

STEEM 0.16
TRX 0.25
JST 0.043
BTC 94089.17
ETH 1799.24
USDT 1.00
SBD 0.90