Back to Basics: for…in Loops in JavaScript – SitePoint

Learn about for…in loops in JavaScript: their syntax, how they work, when to use them, when not to use them, and what you can use instead.