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

You are viewing a single comment's thread from:

JavaScript - hasOwnProperty in `for-in` loops

in programming •  8 years ago 

Yes and for example, If you write an Web Application, then you may use many libraries as dependencies.
and those libraries could change Object.prototype at anytime. So you'd better to use safer way.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!