for in

for in is a loop that iterates through the names of an object.

Syntax

for (variable in object) {
  code
}

Example | Name

Example | Value

External

Mozilla Developer Network