SyntaxFix
Write A Post
Hire A Developer
Questions
Because it will iterate over properties belonging to objects up the prototype chain if you're not careful.
You can use for.. in, just be sure to check each property with hasOwnProperty.
for.. in