You can use 
```javascript
endpointKeys.forEach(function(endpoint) {
   console.log(endpoint);
})
```
to iterate over an array :)