I think [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in) is a better ref. There are issues with iterating over objects as well.

```javascript
for (var key in data) {
  if (data.hasOwnProperty(key)) {
    // key is on obj
  }
}
```